Change ZSH config sourcing.

This commit is contained in:
2016-03-13 15:32:57 +01:00
parent ce29019ec0
commit b4e6726ae2
6 changed files with 6 additions and 10 deletions

View File

@@ -60,3 +60,5 @@ alias l="ls"
alias s="sudo"
alias t="tmux"
alias cl="clear"
alias nocolor="sed -r \"s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g\""

View File

@@ -1,15 +1,9 @@
[[ -z "$PS1" ]] && return
_files=(
'shellopts'
'functions'
'variables'
'aliases'
'prompt')
_zshdir="$HOME/.zsh"
for file in "${_files[@]}" ; do
_path="$HOME"/.zsh/"$file".sh
if [[ -e "$_path" ]] ; then
source "$_path"
for file in "${_zshdir}"/* ; do
if [[ -e "$file" ]] ; then
source "$file"
fi
done