diff options
Diffstat (limited to 'bin/init')
-rwxr-xr-x | bin/init/load-settings.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bin/init/load-settings.sh b/bin/init/load-settings.sh index 79f5fba..d93767d 100755 --- a/bin/init/load-settings.sh +++ b/bin/init/load-settings.sh | |||
@@ -3,14 +3,21 @@ | |||
3 | export SETTING_DIR=${SETTING_DIR:=$HOME/helper} | 3 | export SETTING_DIR=${SETTING_DIR:=$HOME/helper} |
4 | export BIN_DIR=~/bin | 4 | export BIN_DIR=~/bin |
5 | export PATH=$BIN_DIR:$PATH | 5 | export PATH=$BIN_DIR:$PATH |
6 | export EDITOR=nvim | ||
7 | export VISUAL=nvim | ||
8 | export TIG_EDITOR=nvim | ||
9 | export GIT_EDITOR=nvim | ||
10 | export TERM=xterm-256color | 6 | export TERM=xterm-256color |
11 | export XDG_CONFIG_HOME=~/.config | 7 | export XDG_CONFIG_HOME=~/.config |
12 | export XDG_STATE_HOME=~/.local/share/ | 8 | export XDG_STATE_HOME=~/.local/share/ |
13 | export MAIL=$HOME/Maildir | 9 | export MAIL=$HOME/Maildir |
10 | if which nvim; then | ||
11 | export EDITOR=nvim | ||
12 | export VISUAL=nvim | ||
13 | export TIG_EDITOR=nvim | ||
14 | export GIT_EDITOR=nvim | ||
15 | else | ||
16 | export EDITOR=vim | ||
17 | export VISUAL=vim | ||
18 | export TIG_EDITOR=vim | ||
19 | export GIT_EDITOR=vim | ||
20 | fi | ||
14 | 21 | ||
15 | # Get current shell | 22 | # Get current shell |
16 | shell=$(</proc/$$/cmdline sed -E 's/(.)-.+$/\1/' | tr -d '[\0\-]') | 23 | shell=$(</proc/$$/cmdline sed -E 's/(.)-.+$/\1/' | tr -d '[\0\-]') |