No crash on space

This commit is contained in:
Thomas Forgione 2024-07-24 11:32:23 +02:00
parent c3a3d16b9f
commit 6ba78c412b
1 changed files with 2 additions and 2 deletions

View File

@ -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
cd() {
builtin cd $1
builtin cd "$1"
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
# Go the the right directory
cd $(cat $HOME/.config/terminalscwd/$TERMINAL_UUID.cwd)
cd "$(cat $HOME/.config/terminalscwd/$TERMINAL_UUID.cwd)"
else