]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/00_varsetup
add ~/.local/bin to PATH
[zsh.git] / .zsh / zshrc / 00_varsetup
index a49f67da082ec0f64ed4fdb3a8ac04a308355bd9..484a08565dcf1cf0bb8bf2cf4135a2cd76c364d0 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/00_varsetup
 #
 # set up global variables used by the shell
@@ -5,7 +6,7 @@
 # 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
 #
 
 # automatically remove duplicates from these arrays
@@ -16,7 +17,16 @@ typeset -ga preexec_functions
 typeset -ga precmd_functions
 typeset -ga chpwd_functions
 
+__chpwd_run_first()
+{
+  [[ -n $__CHPWD_RUN_FIRST ]] || return
+  eval "$__CHPWD_RUN_FIRST"
+}
+chpwd_functions+=__chpwd_run_first
+
 # warn on accidental creation of global variables
-setopt warn_create_global
+# unset for now until we work out the corner cases, like warning about $reply
+# and $HISTFILE or $REPORTTIME.
+#setopt warn_create_global
 
 # vim:ft=zsh