mirror of
https://github.com/akelge/zsh
synced 2025-07-04 05:29:06 +00:00
Fixes for OMP prompts and for default PATH
This commit is contained in:
7
zshrc
7
zshrc
@ -11,6 +11,7 @@
|
||||
# at the bottom of ~/.zshrc add `zprof >! zsh_profile` to save
|
||||
# profiling data at startup
|
||||
# zmodload zsh/zprof
|
||||
|
||||
# Determine zsh conf file position. On Debian/Ubuntu is /etc/zsh, on other should be /etc
|
||||
#
|
||||
[ -d /etc/zsh ] && BASE="/etc/zsh" || BASE="/etc"
|
||||
@ -38,6 +39,9 @@ function loadRC {
|
||||
done
|
||||
}
|
||||
|
||||
# Default PATH
|
||||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
|
||||
|
||||
local KERNEL=`uname -s`
|
||||
local LIBRARY=${BASE}/zsh.d
|
||||
local KERNLIB=${LIBRARY}/${KERNEL}
|
||||
@ -45,6 +49,9 @@ local KERNLIB=${LIBRARY}/${KERNEL}
|
||||
loadRC ${KERNLIB}
|
||||
loadRC ${LIBRARY}
|
||||
|
||||
# Add home bin to PATH
|
||||
PATH="$PATH:$HOME/bin"
|
||||
|
||||
# Add local customization file
|
||||
if [ -w $LIBRARY ]; then
|
||||
[ -f $LIBRARY/99-local.zsh ] || echo "# Local customizations" > $LIBRARY/99-local.zsh
|
||||
|
Reference in New Issue
Block a user