diff options
-rw-r--r-- | %HOME%/.bashrc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index e410cd7..164d7b1 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -105,3 +105,12 @@ os_is_cygwin \ if [ "$TILIX_ID" ] || [ "$VTE_VERSION" ]; then [ -r /etc/profile.d/vte.sh ] && source /etc/profile.d/vte.sh fi + +# Prevent nested ranger instances. +ranger() { + if [ -z "$RANGER_LEVEL" ]; then + /usr/bin/ranger "$@" + else + exit + fi +} |