From d7abe4f6462b5298f956cc2e05afecfe5b941e8d Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Sun, 9 Jul 2017 17:51:17 +0200 Subject: [PATCH] zsh: aliases: refactor comments and remove check-variables --- zsh/aliases.zsh | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index de92f80..d0a3205 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -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"'