From 76dc1a55f50fbe3b966641110e810c8efc805eb0 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Sun, 4 Feb 2024 10:29:26 -0500 Subject: Switch from yash to busybox ash --- .profile | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to '.profile') 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 -- cgit v1.2.3