Permalink
Browse files

Updating z to latest, which allows me to fix the $PROMPT_COMMAND hack.

  • Loading branch information...
1 parent a71021f commit 770f171108c4bf3d98f342e4bb0d9ab1d9a3b628 @cowboy committed Jul 3, 2012
Showing with 4 additions and 5 deletions.
  1. +1 −1 libs/z
  2. +2 −1 source/{60_file.sh → 50_file.sh}
  3. +1 −3 source/50_prompt.sh
2 libs/z
Submodule z updated 3 files
+5 −1 README
+6 −1 z.1
+7 −3 z.sh
@@ -37,6 +37,7 @@ function md() {
mkdir -p "$@" && cd "$@"
}
-# Note that z.sh must be sourced after the prompt for it to work correctly!
+# Fast directory switching
+_Z_NO_PROMPT_COMMAND=1
_Z_DATA=~/.dotfiles/caches/.z
. ~/.dotfiles/libs/z/z.sh
View
@@ -117,6 +117,4 @@ function prompt_command() {
PS1="$PS1 \$ "
}
-# The " || _z -- add" part is a hack to keep z from modifying $PROMPT_COMMAND,
-# and will never actually be executed. See https://github.com/rupa/z/issues/44
-PROMPT_COMMAND="prompt_command || _z --add"
+PROMPT_COMMAND="prompt_command"

0 comments on commit 770f171

Please sign in to comment.