diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-04 14:17:43 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-04 14:18:29 -0400 |
commit | 4464876807dfb286346368cd53ae14cc351bde97 (patch) | |
tree | b556e624d54f2789d5de3c66a746fabae3e5d2a9 | |
parent | a77ee648f5453af40fb6fb0e6d864455b43eee9a (diff) |
touch up login.sh
-rw-r--r-- | .config/login.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.config/login.sh b/.config/login.sh index 965c22a..d129b0f 100644 --- a/.config/login.sh +++ b/.config/login.sh @@ -17,18 +17,18 @@ umask 022 # TMPDIR ############################################################# -if [[ ! -d "$HOME/tmp" ]]; then - tmp="$(mktemp --tmpdir -d "$USER-tmpdir.XXXXXXXXXXXXXXXXXXX")" - ln -sf "$tmp" "$HOME/tmp" +if [[ ! -d "$HOME/tmp.$HOSTNAME" ]]; then + tmp="$(mktemp --tmpdir -d "$USER@$HOSTNAME-tmpdir.XXXXXXXXXXXXXXXXXXX")" + ln -sf "$tmp" "$HOME/tmp.$HOSTNAME" unset tmp fi -export TMPDIR="$HOME/tmp" +export TMPDIR="$HOME/tmp.$HOSTNAME" # XDG ################################################################ . "$HOME/.local/lib/xdg.sh" mkdir -p "$XDG_RUNTIME_DIR/sessions" -ln -sf -- "$XDG_RUNTIME_DIR/sessions" ~/.sessions +ln -sfT -- "$XDG_RUNTIME_DIR/sessions" ~/.sessions # Settings ########################################################### @@ -38,6 +38,9 @@ if [[ -z "$DICTIONARY" ]] && [[ -n "$LANG" ]]; then fi # Text editor +if [[ $EDITOR = /usr/bin/vi ]]; then + unset EDITOR +fi if [[ -f "$HOME/.selected_editor" ]]; then . "$HOME/.selected_editor" export SELECTED_EDITOR |