exit if required package is not installed to make the modules portable accross systems and not setup aliases that arnt required
This commit is contained in:
parent
00348eca51
commit
dbf7b824f6
6 changed files with 24 additions and 0 deletions
|
@ -7,6 +7,10 @@
|
|||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
if (( ! $+commands[dpkg] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Aliases
|
||||
alias as="aptitude -F \"* %p -> %d \n(%v/%V)\" --no-gui --disable-columns search" # Searches for a package.
|
||||
alias ad="sudo apt-get update" # Updates packages lists.
|
||||
|
|
|
@ -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[perl] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
# Perl is slow; cache its output.
|
||||
cache_file="${0:h}/cache.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