local-bin/apsalar/ranger

12 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