1
0
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:
2021-12-17 09:14:01 +01:00
parent 0ae9cfdb9e
commit 51bd0516d6
8 changed files with 185 additions and 13 deletions

7
zshrc
View File

@ -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