feat(cli): add run/edit in-place functions (#3038)
Co-authored-by: Aram Drevekenin <aram@poor.dev>
This commit is contained in:
parent
1958e9467e
commit
8b2263ecf3
3 changed files with 13 additions and 3 deletions
|
|
@ -1,11 +1,13 @@
|
|||
function zr () { zellij run --name "$*" -- bash -ic "$*";}
|
||||
function zrf () { zellij run --name "$*" --floating -- bash -ic "$*";}
|
||||
function zri () { zellij run --name "$*" --in-place -- bash -ic "$*";}
|
||||
function ze () { zellij edit "$*";}
|
||||
function zef () { zellij edit --floating "$*";}
|
||||
function zei () { zellij edit --in-place "$*";}
|
||||
function zpipe () {
|
||||
if [ -z "$1" ]; then
|
||||
zellij pipe;
|
||||
else
|
||||
zellij pipe -p $1;
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
|
@ -12,12 +12,18 @@ end
|
|||
function zrf
|
||||
command zellij run --name "$argv" --floating -- fish -c "$argv"
|
||||
end
|
||||
function zri
|
||||
command zellij run --name "$argv" --in-place -- fish -c "$argv"
|
||||
end
|
||||
function ze
|
||||
command zellij edit $argv
|
||||
end
|
||||
function zef
|
||||
command zellij edit --floating $argv
|
||||
end
|
||||
function zei
|
||||
command zellij edit --in-place $argv
|
||||
end
|
||||
|
||||
# the zpipe alias and its completions
|
||||
function __fish_complete_aliases
|
||||
|
|
@ -30,4 +36,4 @@ function zpipe
|
|||
command zellij pipe
|
||||
end
|
||||
end
|
||||
complete -c zpipe -f -a "(__fish_complete_aliases)" -d "Zpipes"
|
||||
complete -c zpipe -f -a "(__fish_complete_aliases)" -d "Zpipes"
|
||||
|
|
@ -1,11 +1,13 @@
|
|||
function zr () { zellij run --name "$*" -- zsh -ic "$*";}
|
||||
function zrf () { zellij run --name "$*" --floating -- zsh -ic "$*";}
|
||||
function zri () { zellij run --name "$*" --in-place -- zsh -ic "$*";}
|
||||
function ze () { zellij edit "$*";}
|
||||
function zef () { zellij edit --floating "$*";}
|
||||
function zei () { zellij edit --in-place "$*";}
|
||||
function zpipe () {
|
||||
if [ -z "$1" ]; then
|
||||
zellij pipe;
|
||||
else
|
||||
zellij pipe -p $1;
|
||||
fi
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue