From faf112d8558a21461f8cbe4737a013c0e02a38fd Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 15 Feb 2018 00:58:51 +0100 Subject: [PATCH] Added color to lsrt --- aliases.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"