scripts: update fzfcd to fish

This commit is contained in:
2023-12-09 20:19:11 +02:00
parent 05be256d59
commit 27f3dee5db

View File

@ -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