Move PATH extension to profile

This commit is contained in:
ItsDrike 2021-07-22 00:16:41 +02:00
parent 7c291408e1
commit 84c15ef496
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
2 changed files with 5 additions and 4 deletions

View file

@ -14,16 +14,13 @@ export EDITOR="nvim"
export BROWSER="firefox"
export TERMINAL="Alacrity"
# Add all ~/.local/bin folders to PATH
PATH+=":${$(find ~/.local/bin -type d | tr '\n' ':')%%:}"
# XDG Standard paths
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_RUNTIME_DIR="/run/user/$UID"
# Pre-Application XDG settings
# Per-Application XDG settings
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
#export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs.

View file

@ -5,6 +5,10 @@
# .zshrc/.bashrc, which will run whenever a new terminal
# is opened.
# Add all folders in ~/.local/bin into PATH
# Some window managers require this line to be in profile
# not in .zshenv
PATH+=":${$(find ~/.local/bin -type d | tr '\n' ':')%%:}"
# Start graphical session automatically on tty1 if startx is aviable
if [ "$(tty)" = "/dev/tty1" ] && [ "$UID" != 0 ]; then