Clean up bash aliases
This commit is contained in:
parent
1af5a91d58
commit
25e019ab29
15
bash/aliases
15
bash/aliases
|
@ -3,12 +3,11 @@ alias q='exit'
|
||||||
alias clr='clear'
|
alias clr='clear'
|
||||||
alias catn='cat -n' # cat + line numbers
|
alias catn='cat -n' # cat + line numbers
|
||||||
|
|
||||||
alias -- -="cd -"
|
alias -- -='cd -'
|
||||||
|
|
||||||
# Command fixes
|
# Command fixes
|
||||||
alias ln="${aliases[ln]:-ln} -v" # verbose ln
|
alias ln="${aliases[ln]:-ln} -v" # verbose ln
|
||||||
alias wget='wget -c' # Resume download if possible
|
alias wget='wget -c' # Resume download if possible
|
||||||
alias rename='noglob rename'
|
|
||||||
|
|
||||||
# Shortcut for git
|
# Shortcut for git
|
||||||
g() {
|
g() {
|
||||||
|
@ -50,15 +49,15 @@ if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
alias codekit='open -a CodeKit'
|
alias codekit='open -a CodeKit'
|
||||||
alias b='brew'
|
alias b='brew'
|
||||||
alias v='vim'
|
alias v='vim'
|
||||||
alias e="emacsclient -n" # Emacs server must be running!
|
alias e='emacsclient -n' # Emacs server must be running!
|
||||||
else
|
else
|
||||||
alias ipt='sudo iptables'
|
alias ipt='sudo iptables'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# transmission-remote
|
# transmission-remote
|
||||||
if is-callable 'transmission-remote'; then
|
if is-callable 'transmission-remote'; then
|
||||||
alias bt="transmission-remote server"
|
alias bt='transmission-remote server'
|
||||||
alias btl="bt -l"
|
alias btl='bt -l'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias va='vagrant'
|
alias va='vagrant'
|
||||||
|
@ -73,7 +72,7 @@ alias spec='rspec'
|
||||||
|
|
||||||
alias py='python'
|
alias py='python'
|
||||||
alias pye='pyenv'
|
alias pye='pyenv'
|
||||||
[ -e /Applications/love.app ] && alias love="/Applications/love.app/Contents/MacOS/love"
|
[ -e /Applications/love.app ] && alias love='/Applications/love.app/Contents/MacOS/love'
|
||||||
|
|
||||||
# Bash-only aliases
|
# Bash-only aliases
|
||||||
if [ -z "$ZSH_VERSION" ]; then
|
if [ -z "$ZSH_VERSION" ]; then
|
||||||
|
@ -81,6 +80,6 @@ if [ -z "$ZSH_VERSION" ]; then
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
|
|
||||||
alias ls='ls -G'
|
alias ls='ls -G'
|
||||||
alias l="ls -o"
|
alias l='ls -o'
|
||||||
alias la="ls -AGFoh"
|
alias la='ls -AGFoh'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue