summaryrefslogtreecommitdiff
path: root/.config/login.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/login.sh')
-rw-r--r--.config/login.sh13
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