scripts: update fzfcd to fish
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/fish
|
||||||
selection=$(fzf)
|
set selection (fzf)
|
||||||
|
|
||||||
selection=$(echo $selection | sed 's,/[^/]*$,,')
|
set selection (echo $selection | sed 's,/[^/]*$,,')
|
||||||
|
|
||||||
if [ ! $selection = "\S" ]; then
|
if [ ! $selection = "\S" ]
|
||||||
cd $selection
|
cd $selection
|
||||||
fi
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user