zsh: aliases: refactor comments and remove check-variables
This commit is contained in:
parent
a5af099628
commit
d7abe4f646
1 changed files with 9 additions and 17 deletions
|
|
@ -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"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue