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 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"'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue