local-bin/apsalar/ranger

13 lines
224 B
Bash
Executable File

#!/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