Fix cd-improved for paths with spaces 😜

This commit is contained in:
Talia 2020-08-20 11:34:30 +02:00
parent 1651c3d89b
commit e809c1534c

View file

@ -4,7 +4,7 @@ root="$(git rev-parse --show-toplevel 2>/dev/null)"
if [ -z "$root" ]
then
cd $@
cd "$@"
else
if [ -z "$1" ]
then
@ -12,7 +12,7 @@ else
else
if [ $(echo "$1" | grep '^/') ]
then cd "$root"$@
else cd $@
else cd "$@"
fi
fi
fi