Set an environment variable with the session name/socket.
ccrusius opened this issue · 2 comments
ccrusius commented
I use abduco
without dvtm
, and have on average four to five sessions going. It would be nice if I could see which session I'm currently in at the shell prompt. Currently, the best way I can think of is to hack around with ps
and $PPID
, but that is hard to make portable, and has me parsing an abduco
CLI call.
The suggestion would be for abduco
to automatically set, for example, an ABDUCO_SESSION
and/or ABDUCO_SOCKET
environment variable for each session.
ccrusius commented
Tested and works great, thanks!