-
Notifications
You must be signed in to change notification settings - Fork 18
unset env variables when session is closed #47
Comments
How? |
something like
#!/bin/sh
# Reattach to the session.
kak -c "$KAKOUNE_SESSION" "$@"
exit_status=$?
if [ $exit_status -ne 0 ] ; then
unset IN_KAKOUNE_CONNECT
unset KAKOUNE_SESSION
unset KAKOUNE_CLIENT
fi (maybe in an extra function – sorry for not opening a PR) |
or even exit_status=$?
if [ $exit_status -ne 0 ] ; then
exit
fi |
probably a and in each function: exit_status=$?
if [ $exit_status -ne 0 ] ; then
:quit
fi |
different but related (open new issue or put to trash?): If a session is killed, kill all related windows:
|
I remember @occivink telling the underlying terminal used in the |
then what I had in mind would of course not be feasible without the overhead of loops and hooks or environment variables storing the PIDs. but nevertheless I would find a |
What is the content of the |
probably just maybe also a But of course both are not necessary for functionality. |
How about @ kill |
great! |
After unsuccesfully trying to reattach to a session, environment variables should be unset I guess.
The text was updated successfully, but these errors were encountered: