From a3c048ab4dc5e6e480e0331ac682dd69376856dd Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 20 Mar 2023 09:48:45 +0800 Subject: Improve load-settings.sh --- bin/init/load-settings.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/init/load-settings.sh b/bin/init/load-settings.sh index 6df3047..cd31f76 100755 --- a/bin/init/load-settings.sh +++ b/bin/init/load-settings.sh @@ -4,14 +4,16 @@ export SETTING_DIR=${SETTING_DIR:=$HOME/helper} export EDITOR=vim export TERM=xterm-256color export XDG_CONFIG_HOME=~/.config +export MAIL=$HOME/Maildir # Get current shell -export shell=$(/dev/null find $SETTING_DIR/bin -type f -executable -exec realpath {} + | \ xargs -I{} ln -sf {} $BIN_DIR -# Mail -MAIL=$HOME/Maildir - # sync with important git repos setsid sync.sh @@ -66,6 +65,6 @@ if [[ $- =~ i ]]; then fi # Working DIR -[[ `pwd` == $HOME ]] && cd ~/Downloads +[[ `pwd` == $HOME ]] && test -d ~/Downloads && cd ~/Downloads true -- cgit v1.2.3-70-g09d2