helm/bin/rofi/filemenu

12 lines
208 B
Plaintext
Raw Permalink Normal View History

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