diff options
Diffstat (limited to 'lcl-find')
| -rwxr-xr-x | lcl-find | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -1,17 +1,5 @@ -#! /bin/bash - -source ./util/dpath - -cd "$HOME/Desktop" -file="$(find -L "$DPATH" \ - . \ - -type f | dmenu -b \ - -i \ - -l 25 \ - -p 'Search File:' \ - -nb '#ffffff' \ - -nf '#000080' \ - -sb '#000080' \ - -sf '#ffffff')" -[ -f "$file" ] && xdg-open "$file" || exit 0 +#! /bin/sh +selected="$(find ~/Archive -type d \( -name node_modules -o -name .git \) -prune -o \ + -type f -name '*' -print | dmenu -i -l 15 -p 'Search File')" +[ -f "$selected" ] && setsid -f xdg-open "$selected" > /dev/null 2>&1 |
