martanne/abduco

Set an environment variable with the session name/socket.

ccrusius opened this issue · 2 comments

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.

Hi, please let me know whether 4c3e2c8 and c33ee37 work as expected?

Tested and works great, thanks!