]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshenv/01_path
add ~/.local/bin to PATH
[zsh.git] / .zsh / zshenv / 01_path
index 230e94f14aa22f1c71a8d2a40e726644718f596c..7662c1b88bbfffd819ef72633f7fce771f9c888f 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zprofile/00_path
 #
 # Adds custom directories to the $PATH
@@ -5,11 +6,12 @@
 # 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
+# Source repository: git://git.madduck.net/etc/zsh.git
 #
 
 __prepend_dir_to_path()
 {
+  local dir
   for dir; do
     case "$PATH" in
       "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
@@ -20,6 +22,7 @@ __prepend_dir_to_path()
 
 __append_dir_to_path()
 {
+  local dir
   for dir; do
     case "$PATH" in
       "*:${dir}:*"|"${dir}:*"|"*:${dir}") :;;
@@ -28,7 +31,8 @@ __append_dir_to_path()
   done
 }
 
+__prepend_dir_to_path ~/.local/bin
 __prepend_dir_to_path $BINDIR
-__append_dir_to_path /usr/lib/surfraw
+__prepend_dir_to_path /var/list/.bin
 
 # vim:ft=zsh