Created
July 22, 2011 19:21
-
-
Save davidcelis/1100206 to your computer and use it in GitHub Desktop.
To make zsh behave like bash and preserve current working directory when opening a new shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto-restore paths on launch | |
if [ $(uname) = "Darwin" ]; then | |
precmd () { print -Pn "\e]7;file://%M${PWD// /%%20}\a" } | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment