From: ds6 Date: Sun, 25 Feb 2018 12:27:39 +0000 (-0600) Subject: fix some file redirects X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/32bdde5fa442d01349120dd4c3ab1b6c07537631?ds=sidebyside;hp=84251d176a16ceacac64be0838e2231a6a5dad47 fix some file redirects in hindsight .zprofile should probably be put in a cronjob to avoid affecting things run as the dotfile user before they log in, but doing that may go outside the scope of install.sh --- diff --git a/base/.zprofile b/base/.zprofile index a129213..39abb7d 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -1,5 +1,5 @@ case "`uname`" in *BSD*) - mkdir -m 700 "/tmp/home-$LOGNAME" - unlink "$HOME/tmp" + mkdir -m 700 "/tmp/home-$LOGNAME" > /dev/null 2>&1 + unlink "$HOME/tmp" > /dev/null 2>&1 ln -sFh "/tmp/home-$LOGNAME" "$HOME/tmp";; esac diff --git a/install.sh b/install.sh index 496dfb8..41c019f 100755 --- a/install.sh +++ b/install.sh @@ -34,8 +34,8 @@ l() { # create preferred folder structure cd ~ mkdir -p bin etc share var/run var/log urxvt/ext > /dev/null 2>&1 -mkdir -m 700 var/tmp var/tmp/vim -[ -n "$bsd" ] && mkdir -m 700 tmp +mkdir -m 700 var/tmp var/tmp/vim > /dev/null 2>&1 +[ -n "$bsd" ] && mkdir -m 700 tmp > /dev/null 2>&1 cd - # link files