]> git.donarmstrong.com Git - zsh.git/commitdiff
set paths in zshenv!
authormartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 19:43:01 +0000 (20:43 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 21:02:42 +0000 (22:02 +0100)
.zsh/zprofile/00_fpath [deleted file]
.zsh/zprofile/00_path [deleted file]
.zsh/zshenv/00_fpath [new file with mode: 0644]
.zsh/zshenv/00_path [new file with mode: 0644]

diff --git a/.zsh/zprofile/00_fpath b/.zsh/zprofile/00_fpath
deleted file mode 100644 (file)
index 37bd6e5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# zshenv/00_fpath
-#
-# Adds local functions directory to $fpath
-#
-# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
-# Released under the terms of the Artistic Licence 2.0
-#
-# Source repository: http://git.madduck.net/v/etc/zsh.git
-#
-
-fpath=($ZDOTDIR/func $fpath)
-
-# vim:ft=zsh
diff --git a/.zsh/zprofile/00_path b/.zsh/zprofile/00_path
deleted file mode 100644 (file)
index 230e94f..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-# zprofile/00_path
-#
-# Adds custom directories to the $PATH
-#
-# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
-# Released under the terms of the Artistic Licence 2.0
-#
-# Source repository: http://git.madduck.net/v/etc/zsh.git
-#
-
-__prepend_dir_to_path()
-{
-  for dir; do
-    case "$PATH" in
-      "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
-      *) test -d "$dir" && path=("$dir" $path);;
-    esac
-  done
-}
-
-__append_dir_to_path()
-{
-  for dir; do
-    case "$PATH" in
-      "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
-      *) test -d "$dir" && path+="$dir";;
-    esac
-  done
-}
-
-__prepend_dir_to_path $BINDIR
-__append_dir_to_path /usr/lib/surfraw
-
-# vim:ft=zsh
diff --git a/.zsh/zshenv/00_fpath b/.zsh/zshenv/00_fpath
new file mode 100644 (file)
index 0000000..37bd6e5
--- /dev/null
@@ -0,0 +1,13 @@
+# zshenv/00_fpath
+#
+# Adds local functions directory to $fpath
+#
+# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: http://git.madduck.net/v/etc/zsh.git
+#
+
+fpath=($ZDOTDIR/func $fpath)
+
+# vim:ft=zsh
diff --git a/.zsh/zshenv/00_path b/.zsh/zshenv/00_path
new file mode 100644 (file)
index 0000000..230e94f
--- /dev/null
@@ -0,0 +1,34 @@
+# zprofile/00_path
+#
+# Adds custom directories to the $PATH
+#
+# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: http://git.madduck.net/v/etc/zsh.git
+#
+
+__prepend_dir_to_path()
+{
+  for dir; do
+    case "$PATH" in
+      "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
+      *) test -d "$dir" && path=("$dir" $path);;
+    esac
+  done
+}
+
+__append_dir_to_path()
+{
+  for dir; do
+    case "$PATH" in
+      "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
+      *) test -d "$dir" && path+="$dir";;
+    esac
+  done
+}
+
+__prepend_dir_to_path $BINDIR
+__append_dir_to_path /usr/lib/surfraw
+
+# vim:ft=zsh