Adding custom PATH to .xinitrc
The WM not being started with a login shell, the user preference aren't loaded. For example, awesome's quick exec bar cannot profit from the .zshrc custom PATH. Setting it in the .xinitrc solves this problem.
This commit is contained in:
parent
2dc3dcdc5a
commit
77f8febe5b
1 changed files with 2 additions and 0 deletions
2
.xinitrc
2
.xinitrc
|
@ -7,6 +7,8 @@ hash xscreensaver 2>/dev/null && xscreensaver -no-splash &
|
||||||
hash gpg-agent 2>/dev/null && eval $(gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info")
|
hash gpg-agent 2>/dev/null && eval $(gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info")
|
||||||
|
|
||||||
DEFAULT_SESSION=awesome
|
DEFAULT_SESSION=awesome
|
||||||
|
[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$PATH:$HOME/bin"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
awesome|default|"")
|
awesome|default|"")
|
||||||
exec awesome
|
exec awesome
|
||||||
|
|
Loading…
Reference in a new issue