You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checks if a session with name "session_name" exists
if so, attach to it
if not, create a new session with name "session_name" and strider layout
My nixcode to do this is as follows:
programs.fish.functions.za='' if status is-interactive set session_name (pwd | sd "/" "_") if rg "^$session_name\$" (command zellij list-sessions | psub) echo attempting to attach to existing session exec zellij attach $session_name else echo attempting to start new session exec zellij --session $session_name --layout strider end end '';
I get expected behaviour until the zellij calls. At this point the function hangs. How do I fix this?
The text was updated successfully, but these errors were encountered:
My solution was to name the session using the base64 encoded sha1 of the current directory (openssl sha1 -binary (pwd | psub) | base64). This will always yield a session name of 29 chars (which is within the limits provided by empirical tests in #2591).
A birthday attack on the sha1 is not a problem as I intend to use far less than 2^159 sessions concurrently.
I want a fish function that does the following:
My nixcode to do this is as follows:
I get expected behaviour until the zellij calls. At this point the function hangs. How do I fix this?
The text was updated successfully, but these errors were encountered: