[Fish] fzf and bashs

This commit is contained in:
coja
2026-04-10 23:41:08 +02:00
parent 9a154c71ec
commit 581001db0b
4 changed files with 9 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
function bashs --description 'raw bash command'
bash -c "$argv"
end

View File

@@ -1,3 +1,3 @@
function sshf --description 'fzf select for ssh hosts'
ssh $(grep Host -w ~/.ssh/config | awk '{print $2}' | fzf --preview="echo" --preview-border="none")
ssh $(grep Host -w ~/.ssh/config | awk '{print $2}' | bashs "fzf --multi")
end

View File

@@ -1,3 +1,3 @@
function tuis --description 'fzf select tui'
eval (string split "\n" (cat $HOME/.dotfiles/tuis.txt) | fzf)
eval (string split "\n" (cat $HOME/.dots/tuis.txt) | bashs "fzf --multi")
end