mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-23 08:57:14 +03:00
20 lines
517 B
Fish
20 lines
517 B
Fish
# The following snippet is meant to be used like this in your fish config:
|
|
#
|
|
# if status is-interactive
|
|
# # Configure auto-attach/exit to your likings (default is off).
|
|
# # set ZELLIJ_AUTO_ATTACH true
|
|
# # set ZELLIJ_AUTO_EXIT true
|
|
# eval (zellij setup --generate-auto-start fish | string collect)
|
|
# end
|
|
if not set -q ZELLIJ
|
|
if test "$ZELLIJ_AUTO_ATTACH" = "true"
|
|
zellij attach -c
|
|
else
|
|
zellij
|
|
end
|
|
|
|
if test "$ZELLIJ_AUTO_EXIT" = "true"
|
|
kill $fish_pid
|
|
end
|
|
end
|