Skip to content

Commit

Permalink
Do _z --add on precmd vs. preexec
Browse files Browse the repository at this point in the history
Getting weird errors with pipes... also is closer to stock
functionality.
  • Loading branch information
Pinjasaur committed Jul 3, 2018
1 parent 77c8f98 commit 8715631
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ preexec() {
# Update $DISPLAY to help avoid stale values within tmux
update-x11-forwarding

# Z
_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null

# echo ">>> preexec <<<"
}

Expand All @@ -58,6 +55,9 @@ precmd() {
# Write current/new lines to histfile
history -a

# Z
(_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null &)

# echo "<<< precmd >>>"
}

Expand Down

0 comments on commit 8715631

Please sign in to comment.