Fix - fzfcd would quit when no path is chosen and cd to ~
This commit is contained in:
@ -3,4 +3,6 @@ selection=$(fzf)
|
||||
|
||||
selection=$(echo $selection | sed 's,/[^/]*$,,')
|
||||
|
||||
cd $selection
|
||||
if [ ! $selection = "\S" ]; then
|
||||
cd $selection
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user