zsh: aliases: refactor comments and remove check-variables

This commit is contained in:
Thomas Preisner 2017-07-09 17:51:17 +02:00
parent a5af099628
commit d7abe4f646

View file

@ -1,27 +1,19 @@
# -------------------------------------------------------------------
# directory movement
# -------------------------------------------------------------------
# ===== directory movements
alias cd..='cd ..'
# -------------------------------------------------------------------
# directory information
# -------------------------------------------------------------------
# ===== directory information
alias ll='ls -l'
alias la='ls -la'
# -------------------------------------------------------------------
# MAC only
# -------------------------------------------------------------------
if [[ $IS_MAC -eq 1 ]]; then
# ===== macOS only
if [[ $(uname) = 'Darwin' ]]; then
alias ls='ls -G'
alias refreshbrew='brew outdated | while read cask; do brew upgrade $cask; done'
alias uni='~/Dropbox/University/Semester\ 3'
fi
# -------------------------------------------------------------------
# LINUX only
# -------------------------------------------------------------------
if [[ $IS_LINUX -eq 1 ]]; then
# ===== linux only
if [[ $(uname) = 'Linux' ]]; then
alias ls='ls --color=auto'
alias valgrind='valgrind --leak-check=full --show-reachable=yes'
alias sp1='cd /proj/i4sp1/ty28wuqu/trunk'
@ -30,9 +22,9 @@ if [[ $IS_LINUX -eq 1 ]]; then
alias submit2='/proj/i4sp2/bin/submit'
fi
# -------------------------------------------------------------------
# misc aliases
# -------------------------------------------------------------------
# ===== misc aliases
alias irc='ssh -t irc tmux attach'
# ===== sp aliases
alias xterm='xterm -fa terminus -fs 8'
alias bim='vim +"set background=light"'