fix zexists sourcing
This commit is contained in:
parent
4bc6501144
commit
24dfe67807
2 changed files with 3 additions and 3 deletions
|
@ -22,10 +22,9 @@ function source-zshcmdd {
|
|||
# sort and source conf files
|
||||
for rcfile in ${(o)conf_files}; do
|
||||
# ignore files that begin with a tilde and antircfiles
|
||||
case ${rcfile:t} in 'anti'*|'~'*) continue;; esac
|
||||
|
||||
case ${rcfile:t} in 'anti'* | '~'*) continue;; esac
|
||||
# source files only if exe with that name exists
|
||||
if (( ! $+commands[{rcfile:t:r}] )); then
|
||||
if (( $+commands[${rcfile:t:r}] )); then
|
||||
source "$rcfile"
|
||||
else
|
||||
# if it doesn't exist try the anti version
|
||||
|
|
1
home/private_dot_config/zsh/zexists.d/cmd/anti-lsd.zsh
Normal file
1
home/private_dot_config/zsh/zexists.d/cmd/anti-lsd.zsh
Normal file
|
@ -0,0 +1 @@
|
|||
alias lt="tree -L 3"
|
Loading…
Reference in a new issue