Permalink
Browse files

Replace .git/safe/../../bin with .git/bin in $PATH

  • Loading branch information...
1 parent 4aad169 commit 40255b747791b910afac847cb2ec8196698fd49e @tpope committed Oct 21, 2012
Showing with 5 additions and 2 deletions.
  1. +2 −0 .cshrc
  2. +1 −0 .gitconfig
  3. +2 −2 .shrc
View
@@ -10,6 +10,8 @@ foreach dir ( /usr/bin/X11 /opt/sfw/kde/bin /usr/openwin/bin /usr/dt/bin /usr/ga
if ( $PATH !~ *$dir* && -d "$dir" ) setenv PATH "${dir}:${PATH}"
end
+if ( $PATH !~ *.git/bin:* ) setenv PATH ".git/bin:$PATH"
+
if ( -f "$HOME/.locale" && ! $?LANG && ! $?LC_ALL ) then
setenv LANG "`cat ~/.locale`"
endif
View
@@ -6,6 +6,7 @@
ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags"
rlog = !sh -c 'git log --color \"$@\"|fmt -s -w 79|less -FRSX' git-rlog
summary = log --abbrev-commit --pretty=oneline --author="Tim.Pope" --since=last.mon --reverse
+ trust = !ln -sf ../bin .git
[branch]
autosetupmerge = always
autosetuprebase = always
View
@@ -15,8 +15,8 @@ for dir in /bin /usr/bin /usr/ucb /usr/local/bin /opt/local/bin /opt/sfw/bin "$H
done
case ":$PATH" in
- *:.git/safe/../../bin:*) ;;
- *) PATH=".git/safe/../../bin:$PATH" ;;
+ *:.git/bin:*) ;;
+ *) PATH=".git/bin:$PATH" ;;
esac
for dir in /usr/bin/X11 /opt/sfw/kde/bin /usr/openwin/bin /usr/dt/bin /usr/games /usr/bin/surfraw-elvi /usr/lib/surfraw /var/lib/gems/1.9.1/bin /var/lib/gems/1.8/bin /usr/local/sbin /usr/sbin /sbin /usr/etc; do

0 comments on commit 40255b7

Please sign in to comment.