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