1
0
Fork 0

Exit the module if the required commands arnt installed so aliases arnt set that wont work

pull/199/head^2
Ben O'Hara 13 years ago
parent 0aa4cf91e1
commit ce93ba5d20

@ -5,6 +5,10 @@
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
# #
if (( ! $+commands[git] )); then
return 1
fi
# Source module files. # Source module files.
source "${0:h}/alias.zsh" source "${0:h}/alias.zsh"
source "${0:h}/hub.zsh" source "${0:h}/hub.zsh"

@ -5,6 +5,10 @@
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
# #
if (( ! $+commands[rsync] )); then
return 1
fi
# Aliases # Aliases
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system' _rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'

@ -5,6 +5,10 @@
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
# #
if (( ! $+commands[screen] )); then
return 1
fi
# Aliases # Aliases
alias sl="screen -list" alias sl="screen -list"
alias sn="screen -U -S" alias sn="screen -U -S"

@ -6,6 +6,10 @@
# Colin Hebert <hebert.colin@gmail.com> # Colin Hebert <hebert.colin@gmail.com>
# #
if (( ! $+commands[tmux] )); then
return 1
fi
# Aliases # Aliases
alias ta="tmux attach-session" alias ta="tmux attach-session"
alias tl="tmux list-sessions" alias tl="tmux list-sessions"

Loading…
Cancel
Save