diff options
| -rwxr-xr-x | install.sh | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -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 |
