summaryrefslogtreecommitdiff
path: root/config/shell/profile
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-06-02 17:07:34 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-06-02 17:07:34 +0400
commit07fca1d8eebb484546fc1c5ae52b20fef77339f0 (patch)
tree1bd38922df6e59ff34180b3a6e6ec60b654b5eaf /config/shell/profile
parenteda0d0bb1a6c3b5c957fb1a1fbf5f977c2b7aee9 (diff)
config/shell/profile: Sort directory and file names, export path before exporting
environment variables
Diffstat (limited to 'config/shell/profile')
-rw-r--r--config/shell/profile9
1 files changed, 4 insertions, 5 deletions
diff --git a/config/shell/profile b/config/shell/profile
index f993ac6..0504af9 100644
--- a/config/shell/profile
+++ b/config/shell/profile
@@ -1,12 +1,14 @@
-#Directories
+# Directories and Files
+export XDG_BIN_DIR="$HOME/.local/bin"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
export ZSHRC="$XDG_CONFIG_HOME/zsh/zshrc"
-export XDG_BIN_DIR="$HOME/.local/bin"
+mkdir -p "${XDG_BIN_DIR}"
+PATH="${XDG_BIN_DIR}":$PATH
# Environment variables
[ -x "$(command -v vim)" ] && export EDITOR="vim"
@@ -17,6 +19,3 @@ export XDG_BIN_DIR="$HOME/.local/bin"
[ -x "$(command -v firefox)" ] && export BROWSER="firefox"
export MAKEFLAGS="-j8" # Reduce compile times
-
-mkdir -p "${XDG_BIN_DIR}"
-PATH="${XDG_BIN_DIR}":$PATH