Minor cleanup of alias definitions

This commit is contained in:
Danielle McLean 2016-10-20 17:25:18 +11:00
parent bb1b81eae6
commit 5ce16ad385
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -1,17 +1,17 @@
#! zsh
alias has_command='whence >/dev/null'
alias ls="ls -F --color=auto"
alias lsl="ls -lh"
alias grep="grep --color=auto"
alias egrep="egrep --color=auto"
alias pseudo="sudo"
if has_command xdg-open; then
alias ]='xdg-open'
alias ls='ls -F --color=auto'
alias lsl='ls -lh'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias pseudo=sudo
if (( $+commands[xdg-open] )); then
alias ]=xdg-open
else
alias ]='open'
alias ]=open
fi
alias cdu=cd-gitroot
# make sure ELinks can detect when it's in tmux
alias elinks="STY= elinks"
has_command hub && alias git=hub
(( $+commands[hub] )) && alias git=hub