summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2024-02-04 10:29:26 -0500
committerSam Nystrom <sam@samnystrom.dev>2024-02-04 10:29:26 -0500
commit76dc1a55f50fbe3b966641110e810c8efc805eb0 (patch)
treedc013bb3f7dbaf4ad5c5a7b5e8b8d1ea877c381b /.profile
parent6be5e7b7a8ec59d3de87f2b421328d20a75da606 (diff)
Switch from yash to busybox ash
Diffstat (limited to '.profile')
-rw-r--r--.profile24
1 files changed, 7 insertions, 17 deletions
diff --git a/.profile b/.profile
index 033a9ee..41e6817 100644
--- a/.profile
+++ b/.profile
@@ -1,31 +1,21 @@
# 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
+for p in /bin /sbin /usr/bin /usr/sbin /var/lib/flatpak/exports/bin /usr/local/bin /usr/local/sbin ~/.local/bin ~/.cargo/bin ~/bin; do
case ":$PATH:" in
- *:"$p":*) ;;
- *) export PATH="$PATH:$p" ;;
+ *:"$p":*) ;;
+ *) export PATH="$p:$PATH" ;;
esac
done
# Create a tmpdir for XDG_RUNTIME_DIR if it is not set
-if ! [ "$XDG_RUNTIME_DIR" ]; then
+if [ -z "$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
+ export XDG_RUNTIME_DIR="$(mktemp -d)"
fi
fi
-# Set environment variables
-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 XDG_CURRENT_DESKTOP=sway
+export ENV=~/.ashrc
+. $ENV