Added ls as grc-supported command

whole-command-tab-completion
bretello 2017-11-10 01:24:10 +01:00
parent 2c0f91f5c2
commit 5b807df53e
1 changed files with 9 additions and 8 deletions

View File

@ -10,21 +10,21 @@ if [[ "$(uname)" == "Darwin" ]]; then
alias ls="ls -G" alias ls="ls -G"
## Colorize system.log contents (with grc), and inspect with less. ## Colorize system.log contents (with grc), and inspect with less.
alias console="grc cat /var/log/system.log | sort -r | less -R" alias console="grc cat /var/log/system.log | sort -r | less -R"
## Quicklook shortcut ## Quicklook shortcut
alias quicklook='qlmanage -px 2>/dev/null' alias quicklook='qlmanage -px 2>/dev/null'
alias ql='qlmanage -px' alias ql='quicklook'
## Airport command line interface ## Airport command line interface
alias airport='/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport' alias airport='/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport'
## Set an English locale to awk (default is italian, with commas as decimal separators) ## Set an English locale to awk (default is italian, with commas as decimal separators)
alias awk='LC_ALL=en_DK awk' alias awk='LC_ALL=en_DK awk'
## Flush dns cache ## Flush dns cache
#alias dnsflushcache='sudo discoveryutil mdnsflushcache' # used to work until 10.6 #alias dnsflushcache='sudo discoveryutil mdnsflushcache' # used to work until 10.6
alias dnsflushcache='sudo killall -HUP mDNSResponder' # Works up until 10.9 and after 10.10.4 alias dnsflushcache='sudo killall -HUP mDNSResponder' # Works up until 10.9 and after 10.10.4
## Add opened files to Textmate's recent menu item ## Add opened files to Textmate's recent menu item
alias mate='mate --recent' alias mate='mate --recent'
fi fi
@ -56,7 +56,7 @@ alias upcd='. upcd.sh'
## Show the last 10 modified files ## Show the last 10 modified files
alias lsrt="ls -lrt | tail -10" alias lsrt="ls -lrt | tail -10"
## List open connections, TCP and UDP ## List open connections, TCP and UDP
alias listconnections="lsof -n -i TCP -i UDP" alias listconnections="lsof -n -i TCP -i UDP"
## Stress (run stress &>/dev/null &) ## Stress (run stress &>/dev/null &)
alias stress='yes >> /dev/null' alias stress='yes >> /dev/null'
@ -68,7 +68,7 @@ alias mdiff="mate -t source.diff"
#### SSH Tunnels # #### SSH Tunnels #
########################### ###########################
# define ssh without controlmaster # define ssh without controlmaster
alias ssh1="ssh -o ControlMaster=no" alias ssh1="ssh -o ControlMaster=no"
# Some colorizing options for grc # Some colorizing options for grc
@ -78,6 +78,7 @@ if [[ "$TERM" != dumb ]] && [[ -f $(which grc) ]] ; then
# Supported commands # Supported commands
cmds=( cmds=(
ls \
cc \ cc \
configure \ configure \
cvs \ cvs \