dylanaraps/fff

How to know that i'am in a shell opened by fff

plavenu opened this issue · 2 comments

Hello all,

it possible to know that we are in fff after opening shells in it ?

To be more clearful :

open fff then open a shell !
reopen a fff in this shell !
and so on ...

How to know that i'am in a shell opened by fff ?

Thanks for you tool.

pstree -sa $$ will show you the parents of the current process; which will include a bash /path/to/fff line if you're within a fff-created shell. There are other similar commands if pstree isn't quite what you want.

fff also exports a FFF_LEVEL variable to the subshell's environment, but unless that's documented to always be set (in future versions of fff, I mean) it may be safer to treat that as an implementation detail and instead inspect the process tree.

So great @dimo414 this exactly what i want
Great thanks.