diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/init/load-settings.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh index 4529751..83c3d58 100755 --- a/tools/init/load-settings.sh +++ b/tools/init/load-settings.sh | |||
| @@ -1,18 +1,18 @@ | |||
| 1 | trap 'exit.sh' EXIT | ||
| 2 | |||
| 1 | export SETTING_DIR=${SETTING_DIR:=$HOME/helper} | 3 | export SETTING_DIR=${SETTING_DIR:=$HOME/helper} |
| 2 | export EDITOR=vim | 4 | export EDITOR=vim |
| 3 | export TERM=xterm-256color | 5 | export TERM=xterm-256color |
| 4 | export XDG_CONFIG_HOME=~/.config | 6 | export XDG_CONFIG_HOME=~/.config |
| 5 | 7 | ||
| 6 | trap 'exit.sh' EXIT | 8 | # Get current shell |
| 9 | export shell=$(</proc/$$/cmdline tr -d '[\0\-]') | ||
| 10 | shell=${shell##*/} | ||
| 7 | 11 | ||
| 8 | # load custom aliases | 12 | # load custom aliases |
| 9 | source $SETTING_DIR/alias | 13 | source $SETTING_DIR/alias |
| 10 | [[ -d $SETTING_DIR/private ]] && for f in $SETTING_DIR/private/*; do source $f; done | 14 | [[ -d $SETTING_DIR/private ]] && for f in $SETTING_DIR/private/*; do source $f; done |
| 11 | 15 | ||
| 12 | # Get current shell | ||
| 13 | shell=$(</proc/$$/cmdline tr -d '[\0\-]') | ||
| 14 | shell=${shell##*/} | ||
| 15 | |||
| 16 | # Add custom scripts into PATH | 16 | # Add custom scripts into PATH |
| 17 | BIN_DIR=$HOME/bin | 17 | BIN_DIR=$HOME/bin |
| 18 | PATH=$BIN_DIR:$PATH | 18 | PATH=$BIN_DIR:$PATH |