Exit the module if the required commands arnt installed so aliases arnt set that wont work
This commit is contained in:
parent
0aa4cf91e1
commit
ce93ba5d20
4 changed files with 16 additions and 0 deletions
|
@ -5,6 +5,10 @@
|
|||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
if (( ! $+commands[git] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Source module files.
|
||||
source "${0:h}/alias.zsh"
|
||||
source "${0:h}/hub.zsh"
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
if (( ! $+commands[rsync] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Aliases
|
||||
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'
|
||||
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
if (( ! $+commands[screen] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Aliases
|
||||
alias sl="screen -list"
|
||||
alias sn="screen -U -S"
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
# Colin Hebert <hebert.colin@gmail.com>
|
||||
#
|
||||
|
||||
if (( ! $+commands[tmux] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Aliases
|
||||
alias ta="tmux attach-session"
|
||||
alias tl="tmux list-sessions"
|
||||
|
|
Loading…
Add table
Reference in a new issue