diff options
Diffstat (limited to '.profile')
| -rw-r--r-- | .profile | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -1,4 +1,5 @@ -# Add PATH entries, we can't use external commands yet in case PATH is empty +# Add PATH entries if they aren't already in PATH +# We can't use external commands yet in case PATH is empty for p in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin "$HOME"/.local/bin "$HOME"/.cargo/bin "$HOME"/bin; do case ":$PATH:" in *:"$p":*) ;; @@ -7,18 +8,23 @@ for p in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin "$HOME"/.l done # Create a tmpdir for XDG_RUNTIME_DIR if it is not set -[ "$XDG_RUNTIME_DIR" ] || export XDG_RUNTIME_DIR=$(mktemp -d) +if ! [ "$XDG_RUNTIME_DIR" ]; then + rundir="/run/user/$(id -u)" + if [ -d "$rundir" ]; then + export XDG_RUNTIME_DIR="$rundir" + else + XDG_RUNTIME_DIR="$(mktemp -d)" + export XDG_RUNTIME_DIR + fi +fi # Set environment variables -export EDITOR=nvim +export EDITOR=vim +export VISUAL=vim export PAGER=less +export SHELL=yash export TERMINAL=foot export BROWSER=firefox export GTK_THEME=Catppuccin-Macchiato-Standard-Mauve-Dark export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR"/hissh-agent export DBUS_SESSION_BUS_ADDRESS=unix:path="$XDG_RUNTIME_DIR"/bus -export FZF_DEFAULT_OPTS=" \ - --color=bg+:#363a4f,bg:#24273a,spinner:#f4dbd6,hl:#ed8796 \ - --color=fg:#cad3f5,header:#ed8796,info:#c6a0f6,pointer:#f4dbd6 \ - --color=marker:#f4dbd6,fg+:#cad3f5,prompt:#c6a0f6,hl+:#ed8796" - |
