diff setup @ 736:3281fed2e242

Use xdg (.config) path instead of top home directory
author nanaya <me@nanaya.net>
date Thu, 09 Jan 2025 03:13:02 +0900
parents 49538e2aad65
children 002d6aa2d76e
line wrap: on
line diff
--- 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