mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 23:31:32 +01:00
Added ls as grc-supported command
This commit is contained in:
parent
2c0f91f5c2
commit
5b807df53e
17
aliases.sh
17
aliases.sh
|
@ -10,21 +10,21 @@ if [[ "$(uname)" == "Darwin" ]]; then
|
|||
alias ls="ls -G"
|
||||
## Colorize system.log contents (with grc), and inspect with less.
|
||||
alias console="grc cat /var/log/system.log | sort -r | less -R"
|
||||
|
||||
|
||||
## Quicklook shortcut
|
||||
alias quicklook='qlmanage -px 2>/dev/null'
|
||||
alias ql='qlmanage -px'
|
||||
|
||||
alias ql='quicklook'
|
||||
|
||||
## Airport command line interface
|
||||
alias airport='/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport'
|
||||
|
||||
|
||||
## Set an English locale to awk (default is italian, with commas as decimal separators)
|
||||
alias awk='LC_ALL=en_DK awk'
|
||||
|
||||
|
||||
## Flush dns cache
|
||||
#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
|
||||
|
||||
|
||||
## Add opened files to Textmate's recent menu item
|
||||
alias mate='mate --recent'
|
||||
fi
|
||||
|
@ -56,7 +56,7 @@ alias upcd='. upcd.sh'
|
|||
## Show the last 10 modified files
|
||||
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"
|
||||
## Stress (run stress &>/dev/null &)
|
||||
alias stress='yes >> /dev/null'
|
||||
|
@ -68,7 +68,7 @@ alias mdiff="mate -t source.diff"
|
|||
#### SSH Tunnels #
|
||||
###########################
|
||||
# define ssh without controlmaster
|
||||
alias ssh1="ssh -o ControlMaster=no"
|
||||
alias ssh1="ssh -o ControlMaster=no"
|
||||
|
||||
|
||||
# Some colorizing options for grc
|
||||
|
@ -78,6 +78,7 @@ if [[ "$TERM" != dumb ]] && [[ -f $(which grc) ]] ; then
|
|||
|
||||
# Supported commands
|
||||
cmds=(
|
||||
ls \
|
||||
cc \
|
||||
configure \
|
||||
cvs \
|
||||
|
|
Loading…
Reference in New Issue
Block a user