summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dot-profile6
1 files changed, 4 insertions, 2 deletions
diff --git a/dot-profile b/dot-profile
index 08e60cd..ae3b1ca 100644
--- a/dot-profile
+++ b/dot-profile
@@ -14,8 +14,10 @@ export HISTTIMEFORMAT="[%F %T] "
export HISTFILE=~/.bash_eternal_history
# Use MacPorts GNU commands instead of Mac BSD defaults
-alias sort=/opt/local/libexec/gnubin/sort
-alias ls='/opt/local/libexec/gnubin/ls --color=auto'
+if [[ -f /opt/local/libexec/gnubin ]]; then
+ alias sort=/opt/local/libexec/gnubin/sort
+ alias ls='/opt/local/libexec/gnubin/ls --color=auto'
+fi
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'