Fix - fzfcd would quit when no path is chosen and cd to ~

This commit is contained in:
2023-07-08 15:20:41 +03:00
parent f51196de9f
commit fd3a1f581d

View File

@ -3,4 +3,6 @@ selection=$(fzf)
selection=$(echo $selection | sed 's,/[^/]*$,,')
cd $selection
if [ ! $selection = "\S" ]; then
cd $selection
fi