aboutsummaryrefslogtreecommitdiff
path: root/rofi/rofi_locate.sh
blob: e00e499444fa2a0010062ae5b1da21c43178228e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ -z "$1" ]; then
  echo ""
else
  if [ -e "$1" ]; then
    xdg-open "$1" > /dev/null
  else
    echo ""
    locate --ignore-case -A ~ $* | grep -v "/\."
  fi
fi