From b8cf08e274b84947a95e0e1a292c441eb37fcceb Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 2 Nov 2022 02:32:33 +0900 Subject: [PATCH] Revert "use include gitconfig" This reverts commit 2fae9e358a1cf8c0687a8143c116a6739541d714. --- gitconfig => .gitconfig | 0 install | 1 - mod.bash | 9 --------- 3 files changed, 10 deletions(-) rename gitconfig => .gitconfig (100%) diff --git a/gitconfig b/.gitconfig similarity index 100% rename from gitconfig rename to .gitconfig diff --git a/install b/install index 43d745b..a392588 100755 --- a/install +++ b/install @@ -6,6 +6,5 @@ if (($(id -u) == 0)); then [[ -f /etc/debian_version ]] \ && install_apt_packages fi -install_gitconfig install_dotfiles install_addons "$@" diff --git a/mod.bash b/mod.bash index 76ba3c5..10babd6 100644 --- a/mod.bash +++ b/mod.bash @@ -13,15 +13,6 @@ function install_dotfiles() { done } -function install_gitconfig() { - if (($(id -u) == 0)); then - sudo --user="#${SUDO_UID:-0}" \ - git config --global --add include.path "$(realpath gitconfig)" - else - git config --global --add include.path "$(realpath gitconfig)" - fi -} - function install_apt_packages() { local packages local apt_sources_dir