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