pawamoy / shell-history

Visualize your shell usage with Highcharts!
ISC License
112 stars 1 forks source link

Make sure SHLVL is working as expected #25

Open pawamoy opened 5 years ago

pawamoy commented 5 years ago

If it's not, we can still rely on the parents field to compute it.

It seems to be working fine at first glance:

$ # in bash
$ echo $SHLVL
1
$ zsh
$ echo $SHLVL
2

...though SHLVL is defined in the Bash man page as follow:

SHLVL Incremented by one each time an instance of bash is started.

Maybe it's also used the same way by Zsh.

Boost priority

Fund with Polar