From c9ceea9b99035559a59b43c2b2b427856c8ff7e6 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sun, 7 Dec 2014 13:13:55 +0000 Subject: [PATCH] Fix an alias issue for 'top'. --- .bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index cc973a7..92458b5 100644 --- a/.bashrc +++ b/.bashrc @@ -37,7 +37,9 @@ export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; histor #-------------------------------------------------------------------------------- # Make OS X's 'top' behave like the GNU one #-------------------------------------------------------------------------------- -alias top='top -u' +if [ $(uname -s) = "Darwin" ]; then + alias top='top -u' +fi #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------