addet zellij command
This commit is contained in:
parent
961ace096d
commit
6648dbc774
1 changed files with 17 additions and 0 deletions
17
.zshrc
17
.zshrc
|
@ -635,6 +635,23 @@ __alias__() {
|
|||
|
||||
alias ts="tmux source $HOME/.tmux.conf"
|
||||
fi
|
||||
|
||||
# Zellij session manager
|
||||
if command_exists zellij; then
|
||||
za() {
|
||||
if zellij list-sessions 2>/dev/null | grep -q .; then
|
||||
echo "-- Zellij session active! | Connecting to existing session --"
|
||||
sleep 0.3
|
||||
zellij attach
|
||||
else
|
||||
echo "-- No Zellij session found! | Creating one --"
|
||||
sleep 0.3
|
||||
zellij
|
||||
fi
|
||||
}
|
||||
|
||||
# alias zs="zellij setup --dump-config > $HOME/.config/zellij/config.yaml"
|
||||
fi
|
||||
}
|
||||
|
||||
_coding_() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue