X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/ba92616c7c44cbbf481b8e7c8517491ea5ac5afc..f29cd56086ae36e7abad561ae32f0f063a1eac31:/install.sh?ds=sidebyside diff --git a/install.sh b/install.sh index e7a959b..713e702 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/sh -#fix permissions from git (should probably move this to git hook) +#fix permissions from git (TODO: should probably move this to git hook) chmod go= base/.zshenv base/.Xresources if [ 0 -eq 1 ]; then @@ -12,12 +12,17 @@ if [ 0 -eq 1 ]; then fi l() { + # TODO: use install? [ -L "$1" -o \! -e "$1" ] && ln -sFhvw "$x" "$1" } find "$PWD/base" -depth 1 | while read -r x; do l "$HOME/`basename "$x"`" done +mkdir "$HOME/bin" +find "$PWD/bin" -depth 1 | while read -r x; do + l "$HOME/bin/`basename "$x"`" +done find "$PWD/xdg" -depth 1 | while read -r x; do l "${XDG_CONFIG_HOME:-$HOME/.config}/`basename "$x"`" done