2022-03-05 18:23:51 +03:00
|
|
|
function __fish_complete_sessions
|
|
|
|
zellij list-sessions 2>/dev/null
|
|
|
|
end
|
|
|
|
complete -c zellij -n "__fish_seen_subcommand_from attach" -f -a "(__fish_complete_sessions)" -d "Session"
|
|
|
|
complete -c zellij -n "__fish_seen_subcommand_from a" -f -a "(__fish_complete_sessions)" -d "Session"
|
|
|
|
complete -c zellij -n "__fish_seen_subcommand_from kill-session" -f -a "(__fish_complete_sessions)" -d "Session"
|
2022-03-05 22:41:58 +03:00
|
|
|
complete -c zellij -n "__fish_seen_subcommand_from k" -f -a "(__fish_complete_sessions)" -d "Session"
|
2022-03-06 21:47:33 +03:00
|
|
|
complete -c zellij -n "__fish_seen_subcommand_from setup" -l "generate-completion" -x -a "bash elvish fish zsh powershell" -d "Shell"
|
2022-10-24 20:21:03 +03:00
|
|
|
function zr
|
2022-10-17 20:39:37 +03:00
|
|
|
command zellij run --name "$argv" -- fish -c "$argv"
|
|
|
|
end
|
2022-10-24 20:21:03 +03:00
|
|
|
function zrf
|
2022-10-17 20:39:37 +03:00
|
|
|
command zellij run --name "$argv" --floating -- fish -c "$argv"
|
|
|
|
end
|
2022-10-24 20:21:03 +03:00
|
|
|
function ze
|
2022-10-17 20:39:37 +03:00
|
|
|
command zellij edit $argv
|
|
|
|
end
|
2022-10-24 20:21:03 +03:00
|
|
|
function zef
|
2022-10-17 20:39:37 +03:00
|
|
|
command zellij edit --floating $argv
|
|
|
|
end
|