# HG changeset patch # User Meredith Howard # Date 1428813635 14400 # Node ID 96dbe6a6008dbaf4a70972aad019e5c94f491d5f # Parent fe7e8d6d185358d0353a0164caead6c31a2c49dd ctags tweaking diff --git a/.git_helpers/ctags b/.git_helpers/ctags new file mode 100755 --- /dev/null +++ b/.git_helpers/ctags @@ -0,0 +1,39 @@ +#!/usr/bin/env ruby + +# Meant for use as a git hook: +# CTAGS_HOOK=1 .git/hooks/ctags &>/dev/null 60 + end + + system( <<-CMD ) or exit $?.exitstatus + git ls-files \ + | #{ctags} --tag-relative -L - -f"#{tmp}" #{opts} \ + && mv #{tmp} #{target} + CMD +end + + + diff --git a/.git_helpers/hooks/post-checkout b/.git_helpers/hooks/post-checkout new file mode 100755 --- /dev/null +++ b/.git_helpers/hooks/post-checkout @@ -0,0 +1,5 @@ +#!/bin/sh +export PATH=/opt/local/bin:${PATH} +export CTAGS_HOOK=1 + +~/.git_helpers/ctags >/dev/null 2>&1 /dev/null 2>&1 /dev/null 2>&1 %Creset' --abbrev-commit --date=relative cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 echo git branch -d" + ctags = !~/.git_helpers/ctags [branch] autosetuprebase = always diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -186,6 +186,8 @@ set ruler set showcmd set wildmenu +set tags+=.tags + " Ignore compiled files and repositories set wildignore=*.o,*~,*.pyc if on_windows == 1 @@ -293,6 +295,7 @@ function! PerlSettings () " that's just noisy with intentional no-warnings blocks out there setlocal makeprg=perl\ -c\ %\ $* + setlocal iskeyword+=: endfunction " perl fold scanning is slow