No crash on space
This commit is contained in:
parent
c3a3d16b9f
commit
6ba78c412b
|
@ -5,7 +5,7 @@ if [ "$PRESERVE_SSH_CWD" = "true" ]; then
|
||||||
|
|
||||||
# Alias for cd: when we change directory, we write the new cwd in the file corresponding to the terminal uuid
|
# Alias for cd: when we change directory, we write the new cwd in the file corresponding to the terminal uuid
|
||||||
cd() {
|
cd() {
|
||||||
builtin cd $1
|
builtin cd "$1"
|
||||||
pwd > $HOME/.config/terminalscwd/$TERMINAL_UUID.cwd
|
pwd > $HOME/.config/terminalscwd/$TERMINAL_UUID.cwd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ if [ "$PRESERVE_SSH_CWD" = "true" ]; then
|
||||||
if [ -f $HOME/.config/terminalscwd/$TERMINAL_UUID.cwd ]; then
|
if [ -f $HOME/.config/terminalscwd/$TERMINAL_UUID.cwd ]; then
|
||||||
|
|
||||||
# Go the the right directory
|
# Go the the right directory
|
||||||
cd $(cat $HOME/.config/terminalscwd/$TERMINAL_UUID.cwd)
|
cd "$(cat $HOME/.config/terminalscwd/$TERMINAL_UUID.cwd)"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue