last-working-dir working with spaces in dirnames

This commit is contained in:
Christian Hoener zu Siederdissen 2014-09-13 20:41:47 +02:00 committed by ncanceill
parent d0b690b584
commit 83295ec9bc
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ function chpwd() {
# Changes directory to the last working directory.
function lwd() {
[[ ! -r "$cache_file" ]] || cd `cat "$cache_file"`
[[ ! -r "$cache_file" ]] || cd "`cat "$cache_file"`"
}
# Automatically jump to last working directory unless this isn't the first time