ranger.sh (359B)
1 #!/bin/bash 2 3 input_dir="$1" 4 5 directory=$(find $input_dir -type d \ 6 ! -path '*/.local/*' \ 7 ! -path '*/.cache/*' \ 8 ! -path '*/.firefox/*' \ 9 ! -path '*/.mozilla/*' \ 10 ! -path '*/.git/*' \ 11 ! -path '*/.git/' \ 12 ! -path '*/git/*' \ 13 ! -path '*/docker/*' \ 14 | dmenu -l 15 -i -p "ranger dir:") 15 16 17 if [ -n "$directory" ]; then 18 st -e ranger $directory 19 fi