Browse Source

Merge remote-tracking branch 'origin/master'

Sam Jaffe 8 years ago
parent
commit
3dca2e2ef6
3 changed files with 12 additions and 9 deletions
  1. 0 8
      profile-bsd
  2. 9 0
      profile-osx
  3. 3 1
      profile-util

+ 0 - 8
profile-bsd

@@ -1,9 +1 @@
 alias list="ls -lFhG"
-
-readlink() {
-  if [[ "$1" == "-f" ]]; then
-    perl -MCwd -e 'print Cwd::abs_path shift' "$2"
-  else
-    "$(which readlink)" "$@"
-  fi
-}

+ 9 - 0
profile-osx

@@ -0,0 +1,9 @@
+alias list="ls -lFhG"
+
+readlink() {
+  if [[ "$1" == "-f" ]]; then
+    perl -MCwd -e 'print Cwd::abs_path shift' "$2"
+  else
+    "$(which readlink)" "$@"
+  fi
+}

+ 3 - 1
profile-util

@@ -146,7 +146,9 @@ clrun() {
   "$@"
 }
 
-if [[ $(uname) == "Darwin" ]]; then # OSX / FreeBSD
+if [[ $(uname) == "Darwin" ]]; then # OSX
+  . ${HOME}/.profile-osx
+elif [[ $(uname) == *BSD* ]]; then # FreeBSD
   . ${HOME}/.profile-bsd
 else
   . ${HOME}/.profile-linux