# HG changeset patch # User nanaya # Date 1736359982 -32400 # Node ID 3281fed2e2424fe10e2d8734a3add06537502159 # Parent 9ad5a65b1c7e3f3335957388ff4c130022ef42f5 Use xdg (.config) path instead of top home directory diff -r 9ad5a65b1c7e -r 3281fed2e242 rc/gitconfig --- a/rc/gitconfig Thu Jan 09 00:59:04 2025 +0900 +++ b/rc/gitconfig Thu Jan 09 03:13:02 2025 +0900 @@ -9,8 +9,6 @@ default = current [color] ui = true -[core] - excludesfile = ~/.gitignore_global [diff] algorithm = patience [log] diff -r 9ad5a65b1c7e -r 3281fed2e242 rc/hgrc --- a/rc/hgrc Thu Jan 09 00:59:04 2025 +0900 +++ b/rc/hgrc Thu Jan 09 03:13:02 2025 +0900 @@ -2,8 +2,8 @@ username = nanaya merge = vimdiff verbose = true -ignore = ~/.hgignore_global -ignore.local = ~/.hgignore_global.local +ignore = ~/.config/hg/ignore +ignore.local = ~/.config/hg/ignore.local [merge-tools] vimdiff.executable = vim @@ -47,4 +47,4 @@ status.unknown = blue bold status.ignored = black bold -%include ~/.hgrc.local +%include ~/.config/hg/hgrc.local diff -r 9ad5a65b1c7e -r 3281fed2e242 rc/irbrc --- a/rc/irbrc Thu Jan 09 00:59:04 2025 +0900 +++ b/rc/irbrc Thu Jan 09 03:13:02 2025 +0900 @@ -1,4 +1,4 @@ IRB.conf[:SAVE_HISTORY] = 20000 -IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history" +IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.config/irb/history" IRB.conf[:USE_AUTOCOMPLETE] = false IRB.conf[:USE_MULTILINE] = false diff -r 9ad5a65b1c7e -r 3281fed2e242 setup --- a/setup Thu Jan 09 00:59:04 2025 +0900 +++ b/setup Thu Jan 09 03:13:02 2025 +0900 @@ -216,19 +216,19 @@ _rc "${1}" "shellinit-posix" ".ec.shellinit-posix" _rc "${1}" "../bin" ".ec.bin" _rc "${1}" "gemrc" ".gemrc" - _rc "${1}" "gitconfig" ".gitconfig" - _rc "${1}" "gitignore_global" ".gitignore_global" - _rc "${1}" "hgrc" ".hgrc" - _touch "${1}" "${HOME}/.hgrc.local" - _rc "${1}" "hgignore_global" ".hgignore_global" - _touch "${1}" "${HOME}/.hgignore_global.local" + _rc "${1}" "gitconfig" ".config/git/config" + _rc "${1}" "gitignore_global" ".config/git/ignore" + _rc "${1}" "hgrc" ".config/hg/hgrc" + _touch "${1}" "${HOME}/.config/hg/hgrc.local" + _rc "${1}" "hgignore_global" ".config/hg/ignore" + _touch "${1}" "${HOME}/.config/hg/ignore.local" _rc "${1}" "editrc" ".editrc" _rc "${1}" "inputrc" ".inputrc" _tmux "${1}" _vim_x "${1}" syntax _vim_packs "${1}" _rc "${1}" "vimrc" ".vimrc" - _rc "${1}" "irbrc" ".irbrc" + _rc "${1}" "irbrc" ".config/irb/irbrc" ;; *) _help