helm/bin/rofi/rofi-filemenu

11 lines
211 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
2019-12-09 00:20:51 -08:00
DIR="$(fd -L --type d . $HOME | rofi -dmenu -i -p files -columns 1 -theme theme/appmenu.rasi)"
if [ -d "$DIR" ]; then
cd "$DIR"
if [[ $1 == "-x" ]]; then
scratch
else
xst
fi
fi