zsh: add ~/bin to PATH if available
This commit is contained in:
parent
874cd444ba
commit
29f6d0a2b9
2 changed files with 5 additions and 3 deletions
|
@ -1,14 +1,12 @@
|
||||||
# vim:set ft=zsh:
|
# vim:set ft=zsh:
|
||||||
|
|
||||||
# Fix for foot terminfo not installed on most servers
|
|
||||||
alias ssh="TERM=xterm-256color ssh"
|
|
||||||
source ~/.config/user-dirs.dirs
|
source ~/.config/user-dirs.dirs
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
setopt correct # Auto correct mistakes
|
setopt correct # Auto correct mistakes
|
||||||
setopt extendedglob # Extended globbing. Allows using regular expressions with *
|
setopt extendedglob # Extended globbing. Allows using regular expressions with *
|
||||||
setopt nocaseglob # Case insensitive globbing
|
setopt nocaseglob # Case insensitive globbing
|
||||||
setopt rcexpandparam # Array expension with parameters
|
setopt rcexpandparam # Array expansion with parameters
|
||||||
setopt nocheckjobs # Don't warn about running processes when exiting
|
setopt nocheckjobs # Don't warn about running processes when exiting
|
||||||
setopt numericglobsort # Sort filenames numerically when it makes sense
|
setopt numericglobsort # Sort filenames numerically when it makes sense
|
||||||
setopt nobeep # No beep
|
setopt nobeep # No beep
|
||||||
|
|
4
.config/zsh/config.d/99-prepend-home-bin-path
Normal file
4
.config/zsh/config.d/99-prepend-home-bin-path
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# vim:set ft=zsh:
|
||||||
|
if [[ -d "$HOME/bin" ]]; then
|
||||||
|
export PATH=$HOME/bin:${PATH}
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue