mirror of https://github.com/akelge/zsh
Small improvement
This commit is contained in:
parent
dfac2b93b2
commit
05eb0c7819
17
zshrc
17
zshrc
|
@ -20,22 +20,11 @@
|
||||||
[ -d ~/.zsh ] && BASE=~/.zsh
|
[ -d ~/.zsh ] && BASE=~/.zsh
|
||||||
|
|
||||||
function loadRC {
|
function loadRC {
|
||||||
if [ -d $1/zshfunctions ]; then
|
[ -d $1/zshfunctions ] && fpath=($1/zshfunctions $fpath)
|
||||||
fpath=($1/zshfunctions $fpath)
|
[ -d $1/completions ] && fpath=($1/completions $fpath)
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d $1/completions ]; then
|
|
||||||
fpath=($1/completions $fpath)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# # Add local customization file
|
|
||||||
# if [ -w $1 ]; then
|
|
||||||
# [ -f $1/99-local.zsh ] || echo "# Local customizations" > $1/99-local.zsh
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# Process all .zsh files
|
|
||||||
for zshFile in $1/[0-9]*.zsh; do
|
for zshFile in $1/[0-9]*.zsh; do
|
||||||
. $zshFile
|
source $zshFile
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue