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