Fix sh loader

This commit is contained in:
2022-01-26 19:47:11 -06:00
parent b1b903e507
commit bdcd43ef29
3 changed files with 10 additions and 9 deletions

View File

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

View File

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

View File

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