From 84c15ef49668f72aa0c008cc6af61d55ec9fbbc1 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 22 Jul 2021 00:16:41 +0200 Subject: [PATCH] Move PATH extension to profile --- home/.config/shell/environment | 5 +---- home/.config/shell/profile | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/home/.config/shell/environment b/home/.config/shell/environment index 776f34d..0aa8b7f 100755 --- a/home/.config/shell/environment +++ b/home/.config/shell/environment @@ -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. diff --git a/home/.config/shell/profile b/home/.config/shell/profile index 8287c3b..abffaac 100755 --- a/home/.config/shell/profile +++ b/home/.config/shell/profile @@ -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