dotfiles/modules/common/shell/fish/functions/fcd.fish

11 lines
220 B
Fish
Raw Normal View History

2022-04-30 14:21:43 +00:00
if test -z $directory
set directory "$HOME"
2021-05-08 21:39:52 +00:00
end
2022-04-30 14:21:43 +00:00
if ! test -d $directory
echo "Directory not found: $directory"
return 1
end
set jump (fd -t d . $directory | fzf)
and cd $jump $argv
and commandline -f execute