summaryrefslogtreecommitdiff
path: root/git/.git_template/hooks
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-06-08 16:58:48 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-06-08 16:58:48 +0100
commit368dfd19f18bb82a9c67abeb454d45ea5384febc (patch)
tree3a05c203beef2ac61342612409b5476bda47091d /git/.git_template/hooks
parentb4013397618a45a637f759f466eff7baf9100736 (diff)
Disbale Caps lock completely
Diffstat (limited to 'git/.git_template/hooks')
-rwxr-xr-xgit/.git_template/hooks/ctags3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/.git_template/hooks/ctags b/git/.git_template/hooks/ctags
index a9a2150..6fc53b6 100755
--- a/git/.git_template/hooks/ctags
+++ b/git/.git_template/hooks/ctags
@@ -1,8 +1,7 @@
#!/bin/sh
set -e
PATH="/usr/local/bin:$PATH"
-dir="`git rev-parse --git-dir`"
+dir="$(git rev-parse --git-dir)"
trap 'rm -f "$dir/$$.tags"' EXIT
git ls-files | ctags --tag-relative -L - -f"$dir/$$.tags" --languages=-javascript,sql
mv "$dir/$$.tags" "$dir/tags"
-