Commit 83295ec9 authored by Christian Hoener zu Siederdissen's avatar Christian Hoener zu Siederdissen Committed by ncanceill
Browse files

last-working-dir working with spaces in dirnames

parent d0b690b5
...@@ -15,7 +15,7 @@ function chpwd() { ...@@ -15,7 +15,7 @@ function chpwd() {
# Changes directory to the last working directory. # Changes directory to the last working directory.
function lwd() { 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 # Automatically jump to last working directory unless this isn't the first time
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment