diff options
author | Dylan Araps <dylan.araps@gmail.com> | 2019-01-28 23:29:16 +0200 |
---|---|---|
committer | Dylan Araps <dylan.araps@gmail.com> | 2019-01-28 23:29:16 +0200 |
commit | 4df0a3f40a7b8af54983324d6bda3f73797d3124 (patch) | |
tree | 5a8bc03214cadcf5f24ca76830700b37dfa90832 | |
parent | 59e1905e115890b5c232b09206ba36440be679a0 (diff) |
general: Export envar FFF_LEVEL to make programs aware if fff is the parent
-rwxr-xr-x | fff | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -713,6 +713,11 @@ key() { # Spawn a shell. "${FFF_KEY_SHELL:=!}") reset_terminal + + # Make fff aware of how many times it is nested. + export FFF_LEVEL + ((FFF_LEVEL++)) + cd "$PWD" && "$SHELL" setup_terminal redraw |