Add .config/fish/functions/bm-add.fish

Add .config/fish/functions/bm.fish
This commit is contained in:
Lewis Wynne 2025-11-12 02:42:12 +00:00
parent 3f89a7d5f1
commit 50ac85d80b
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,8 @@
function bm-add
set name $argv[1]
if test -z "$name"
echo "usage: bm-add <key>"
return 1
end
pda set "$name@b" (realpath .)
end

View file

@ -0,0 +1,3 @@
function bm
cd "$(pda list b -o csv --no-header | cut -d, -f2 | fzf)"
end