Jelajahi Sumber

Fixing BSD profile selection/definitions

Samuel Jaffe 8 tahun lalu
induk
melakukan
94406b4bed
2 mengubah file dengan 3 tambahan dan 9 penghapusan
  1. 0 8
      profile-bsd
  2. 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
-}

+ 3 - 1
profile-util

@@ -145,7 +145,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