X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/39bd5e00a4d4985551dba1b0d44d85b33c771fe8..fab9d5ddaf9243eacb6d8e98cabaf81be4a09877:/install.sh?ds=sidebyside diff --git a/install.sh b/install.sh index 5ac2fae..4ced505 100755 --- a/install.sh +++ b/install.sh @@ -1,16 +1,20 @@ #!/bin/sh -for x in `find "$PWD" -mindepth 1 -maxdepth 1 \! \( -name '.git' -name 'install.sh' \) -name '.*'`; do + +#fix permissions from git (should probably move this to git hook) +chmod go= base/.zshenv base/.Xresources + +for x in `find "$PWD/base" -mindepth 1 -maxdepth 1`; do ln -vwis "$x" "$HOME/`basename $x`" done -ln -vwis "$PWD/i3-config" "$HOME/.config/i3/config" -ln -vwis "$PWD/i3status-config" "$HOME/.config/i3status/config" +for x in `find "$PWD/xdg" -mindepth 1 -maxdepth 1`; do + ln -vwis "$x" "${XDG_CONFIG_HOME:-$HOME/.config}/`basename $x`" +done touch "$HOME/.hushlogin" -#fix permissions from git (should probably move this to git hook) -chmod go= .zshenv .Xresources -# #FreeBSD tries `_secure_path' on `.login_conf' before reaading the database, #so it needs to be compiled and unlinked for it to actually take effect. +cd "$HOME" rm .login_conf.db cap_mkdb .login_conf unlink .login_conf +cd -