martanne / abduco

abduco provides session management i.e. it allows programs to be run independently from its controlling terminal. That is programs can be detached - run in the background - and then later reattached. Together with dvtm it provides a simpler and cleaner alternative to tmux or screen.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set an environment variable with the session name/socket.

ccrusius opened this issue · 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!