From baa1a3193e6f98c11cb5eb8ee66d4c5ae7255d56 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Tue, 15 Aug 2023 13:53:03 -0400 Subject: switch to yash --- .profile | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to '.profile') diff --git a/.profile b/.profile index a68983b..8ead663 100644 --- a/.profile +++ b/.profile @@ -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" - -- cgit v1.2.3