Fix sh loader
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
TOOLKIT=/etc/toolkit
|
||||
source /etc/toolkit/sh/load.sh
|
||||
|
||||
ZSH=$TOOLKIT/sh/ohmyzsh
|
||||
ZSH_CUSTOM=$ZSH/custom
|
||||
ZSH_THEME="bira"
|
||||
TOOLKIT=/etc/toolkit
|
||||
|
||||
zstyle ':omz:update' mode auto # update automatically without asking
|
||||
zstyle ':omz:update' frequency 14
|
||||
@ -19,4 +19,3 @@ if [[ ! -d $ZSH_CACHE_DIR ]]; then
|
||||
fi
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
source $TOOLKIT/sh/load.sh
|
||||
|
@ -1,5 +1,5 @@
|
||||
ALIASES='/usr/share/zsh/custom/aliases.sh'
|
||||
VARS='/usr/share/zsh/custom/vars.sh'
|
||||
ALIASES=${TOOLKIT}/sh/custom/aliases.sh
|
||||
VARS=${TOOLKIT}/sh/custom/vars.sh
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
10
sh/load.sh
10
sh/load.sh
@ -1,4 +1,6 @@
|
||||
# Sources necessary shell scripts
|
||||
if [ -d "./custom" ]; then
|
||||
source ./custom/*.sh
|
||||
fi
|
||||
TOOLKIT=/etc/toolkit
|
||||
|
||||
# Sources custom shell scripts
|
||||
for sh in ${TOOLKIT}/sh/custom/*.sh; do
|
||||
test -r "$sh" && . "$sh"
|
||||
done
|
||||
|
Reference in New Issue
Block a user