rice

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fa39b2e23ef07468110b77fb0bf75e1e001cbcce
parent ff6fd08ca84ddefa2ef8ab6baefd16b29916d535
Author: Mark Feller <mark@getsunday.com>
Date:   Tue, 29 Sep 2020 18:36:47 -0600

tweak install

Diffstat:
Minstall | 44++++++++++++++++++++++++++------------------
1 file changed, 26 insertions(+), 18 deletions(-)

diff --git a/install b/install @@ -1,34 +1,42 @@ #!/bin/sh -e cd "$(dirname "$0")" +copy() +{ + printf "%-25s %s\n" "$1" "$2/$(basename $1)" + cp -r "$1" "$2" +} + shared() { - cp -rv dots/.config/emacs $HOME/.config - cp -rv dots/.config/git $HOME/.config - cp -rv dots/.config/lf $HOME/.config - cp -rv dots/.config/mpd $HOME/.config - cp -rv dots/.config/ncmpcpp $HOME/.config - cp -rv dots/.config/notmuch $HOME/.config - cp -rv dots/.config/zsh $HOME/.config - cp -rv dots/.config/aliasrc $HOME/.config - cp -rv dots/.local $HOME + copy dots/.config/emacs $HOME/.config + copy dots/.config/git $HOME/.config + copy dots/.config/lf $HOME/.config + copy dots/.config/mpd $HOME/.config + copy dots/.config/ncmpcpp $HOME/.config + copy dots/.config/notmuch $HOME/.config + copy dots/.config/zsh $HOME/.config + copy dots/.config/aliasrc $HOME/.config + copy dots/.local/bin $HOME/.local + copy dots/.local/share/emacs $HOME/.local/share + copy dots/.local/share/gnupg $HOME/.local/share } case $1 in linux) shared - cp -rv dots/.config/compton $HOME/.config - cp -rv dots/.config/dunst $HOME/.config - cp -rv dots/.config/vis $HOME/.config - cp -rv dots/.config/mimeapps.list $HOME/.config - cp -rv dots/.xinitrc $HOME - cp -rv dots/.xprofile $HOME - cp -rv dots/.zprofile $HOME + copy dots/.config/compton $HOME/.config + copy dots/.config/dunst $HOME/.config + copy dots/.config/vis $HOME/.config + copy dots/.config/mimeapps.list $HOME/.config + copy dots/.xinitrc $HOME + copy dots/.xprofile $HOME + copy dots/.zprofile $HOME ;; macos) shared - cp -rv dots/.config/alacritty $HOME/.config - cp -rv dots/.zshenv $HOME + copy dots/.config/alacritty $HOME/.config + copy dots/.zshenv $HOME ;; *) echo "Usage: $0 [linux|macos]"