Compare commits
2 commits
1dbb53f3ee
...
24dfe67807
Author | SHA1 | Date | |
---|---|---|---|
24dfe67807 | |||
4bc6501144 |
3 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ ssh-serve-files
|
||||||
usage: ssh-serve-files [user@]hostname [-p port] [-d dir]
|
usage: ssh-serve-files [user@]hostname [-p port] [-d dir]
|
||||||
|
|
||||||
optional flags:
|
optional flags:
|
||||||
-h, --help show this help text
|
-h, --help show this help text
|
||||||
-p, --port port to tunnel and start http server at
|
-p, --port port to tunnel and start http server at
|
||||||
-d, --dir directory of files to serve [default: ~/]
|
-d, --dir directory of files to serve [default: ~/]
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -22,10 +22,9 @@ function source-zshcmdd {
|
||||||
# sort and source conf files
|
# sort and source conf files
|
||||||
for rcfile in ${(o)conf_files}; do
|
for rcfile in ${(o)conf_files}; do
|
||||||
# ignore files that begin with a tilde and antircfiles
|
# 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
|
# source files only if exe with that name exists
|
||||||
if (( ! $+commands[{rcfile:t:r}] )); then
|
if (( $+commands[${rcfile:t:r}] )); then
|
||||||
source "$rcfile"
|
source "$rcfile"
|
||||||
else
|
else
|
||||||
# if it doesn't exist try the anti version
|
# 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