local-bin/apsalar/ranger

13 lines
224 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
# Launches ranger into its own terminal if
# not run from a terminal (like from bemenu)
if ! [[ -t 0 && -t 1 && -t 2 ]]; then
if [[ -n $DISPLAY ]]; then
kitty /usr/bin/ranger
fi
else
/usr/bin/ranger
fi