Don't run haskell tags on home or non-git

5f3349b0c4b8df50e8262749926c52fc42a29115
Alexis Sellier committed ago 1 parent be90ccc6
bin/haskell-tags +5 -0
1 1
#!/bin/sh
2 2
3 +
ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
4 +
5 +
[ "$ROOT" = "$HOME" ] && exit
6 +
[ "$ROOT" = ""      ] && exit
7 +
3 8
if [ ! -f .tags ]; then
4 9
  exec fast-tags -o $2 `rg -t haskell --files .`
5 10
else
6 11
  exec fast-tags -o $2 $1
7 12
fi