Minor cleanup of alias definitions
This commit is contained in:
parent
bb1b81eae6
commit
5ce16ad385
1 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue