Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
general: Export envar FFF_LEVEL to make programs aware if fff is the …
Browse files Browse the repository at this point in the history
…parent
  • Loading branch information
dylanaraps committed Jan 28, 2019
1 parent 59e1905 commit 4df0a3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fff
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4df0a3f

Please sign in to comment.