From 6e515b6902c537e742c2408783459e6a0ad10fa0 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Fri, 24 Nov 2023 00:38:22 -0500 Subject: Disable install.sh until fixed --- install.sh | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 281750f..aaf906c 100755 --- a/install.sh +++ b/install.sh @@ -15,6 +15,14 @@ # https://wiki.archlinux.org/title/Dotfiles +# FIXME: This is broken since I moved the directories. Change all $PWD with +# $PWD/config and it should work. But make this simpler. The "copy" +# mode is useless. Each user should have a copy of this and then use the +# "slink" mode. That way you can keep track of changes made, and then +# even add a branch (e.g., pulse15, x220) to the repo. +exit + + # Config # ====== @@ -93,16 +101,9 @@ if prompt "vim"; then eval $cp_or_ln " ${PWD}/vim/fun.vim $VIMFILES/fun.vim" fi -if prompt "git"; then - [ -d $XDG_CONFIG_HOME/git ] || mkdir -p $XDG_CONFIG_HOME/git - eval $cp_or_ln " ${PWD}/git/ignore $XDG_CONFIG_HOME/git/ignore" - eval $cp_or_ln " ${PWD}/git/config $XDG_CONFIG_HOME/git/config" - eval $cp_or_ln " ${PWD}/git/git-prompt.sh $HOME/.git-prompt.sh" -fi - if prompt "Xorg"; then - eval $cp_or_ln " ${PWD}/Xorg/xinitrc $HOME/.xinitrc" - eval $cp_or_ln " ${PWD}/Xorg/xbindkeysrc $HOME/.xbindkeysrc" + eval $cp_or_ln " ${PWD}/xorg/xinitrc $HOME/.xinitrc" + eval $cp_or_ln " ${PWD}/xorg/xbindkeysrc $HOME/.xbindkeysrc" fi # Directorywise @@ -116,6 +117,12 @@ if prompt "tmux"; then eval $cp_or_ln " ${PWD}/tmux $XDG_CONFIG_HOME" fi +if prompt "git"; then + eval $cp_or_ln " ${PWD}/git $XDG_CONFIG_HOME" + eval $cp_or_ln " ${PWD}/git/git-prompt.sh $HOME/.git-prompt.sh" +fi + + if prompt "zathura"; then eval $cp_or_ln " ${PWD}/zathura $XDG_CONFIG_HOME" fi -- cgit v1.2.3