config(fish): add fish completions for cli tools

This commit is contained in:
Prad Nukala committed 2026-07-16 16:58:06 -04:00
1 parent b1fb6ee6fb
commit 7db95c2076
48 files changed
+2241

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
function gho
set -l vaults ~/Documents/Obsidian/Personal ~/Documents/Obsidian/Walletbase ~/Documents/Obsidian/Research
set -l selection (ghq list | fzf --prompt="repo: " --tiebreak=end \
--bind "tab:transform:if test \"\$FZF_PROMPT\" = 'repo: '
echo 'change-prompt(vault: )+reload(printf %s\n $vaults)'
else
echo 'change-prompt(repo: )+reload(ghq list)'
end")
or return
# Vault entries are absolute paths; ghq entries are host/user/repo
if string match -q '/*' -- $selection
cd $selection
else
cd (ghq root)/$selection
end
clear
if test -d .git
onefetch
end
end