diff --git a/aliases.sh b/aliases.sh index 16acea2..1608849 100755 --- a/aliases.sh +++ b/aliases.sh @@ -24,7 +24,7 @@ if [[ "$(uname)" == "Darwin" ]]; then ## 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 - + alias lsrt='ls -G -lrt | tail -5' ## Add opened files to Textmate's recent menu item alias mate='mate --recent' fi @@ -54,7 +54,9 @@ alias ipy="ipython --pylab" alias upcd='. upcd.sh' ## Show the last 10 modified files -alias lsrt="ls -lrt | tail -10" +if [[ ! "$(uname)" == "Darwin" ]]; then + alias lsrt="ls -lrt | tail -10" +fi ## List open connections, TCP and UDP alias listconnections="lsof -n -i TCP -i UDP"