helm/bin/rofi/filemenu
2020-02-09 03:03:58 -05:00

12 lines
208 B
Bash
Executable file

#!/usr/bin/env sh
cd $HOME
DIR="$(fd -L -d 4 --type d . | rofi -dmenu -i -p "~/" -theme theme/filemenu.rasi)"
if [ -d "$DIR" ]; then
cd "$DIR"
if [[ $1 == "-x" ]]; then
scratch
else
xst
fi
fi