X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/1b8a41029ebb68751ea995e4dbd30e366d54a5e7..12f46d4eb8a0843d403a7ee3fb342df68783773c:/install.sh?ds=sidebyside diff --git a/install.sh b/install.sh index 2302890..4ced505 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,20 @@ #!/bin/sh -d="$HOME/.dotfiles" -for x in .*; do ln -vwis "$d/$x" "$HOME/$x"; done -ln -vwis "$d/i3-config" "$HOME/.config/i3/config" -ln -vwis "$d/i3status-config" "$HOME/.config/i3status/config" + +#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 +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" + +#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 -