summaryrefslogtreecommitdiff
path: root/_posts/2008-06-26-git-branch-everywhere.textile
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2013-11-26 10:36:10 -0800
committerFranck Cuny <franck.cuny@gmail.com>2013-11-26 10:36:10 -0800
commit8ddf2e94df70707b458528a437759b96046d3e01 (patch)
treed442818d92d3c9c6f7fcdc92857a1228963849a1 /_posts/2008-06-26-git-branch-everywhere.textile
parentDon't need to use the IP in the makefile. (diff)
downloadlumberjaph-8ddf2e94df70707b458528a437759b96046d3e01.tar.gz
Huge update.
Moved all posts from textile to markdown. Updated all the CSS and styles. Added a new page for the resume.
Diffstat (limited to '')
-rw-r--r--_posts/2008-06-26-git-branch-everywhere.md (renamed from _posts/2008-06-26-git-branch-everywhere.textile)8
1 files changed, 4 insertions, 4 deletions
diff --git a/_posts/2008-06-26-git-branch-everywhere.textile b/_posts/2008-06-26-git-branch-everywhere.md
index 1c32000..bde1ffa 100644
--- a/_posts/2008-06-26-git-branch-everywhere.textile
+++ b/_posts/2008-06-26-git-branch-everywhere.md
@@ -1,14 +1,14 @@
---
layout: post
-category: app
title: Git branch everywhere
+summary: In which I share a snippet of code to display a git branch in vim.
---
The current trend is to have the name of the current git branch everywhere. Personnaly I display it in my vim's status bar, and in my zsh prompt.
Here is my vimrc configuration for this (I'm not the author of this function, and can't remember where I saw it first):
-{% highlight bash %}
+{% highlight vim %}
set statusline=%&lt;[%n]%m%r%h%w%{'['.(&amp;fenc!=''?&amp;fenc:&amp;enc).':'.&amp;ff}%{g:gitCurrentBranch}%{']'}%y\ %F%=%l,%c%V%8P
autocmd BufEnter * :call CurrentGitBranch()
@@ -29,10 +29,10 @@ endfunction
and my zshrc:
-{% highlight bash %}
+{% highlight vim %}
local git_b
git_b='$(get_git_prompt_info '%b')'
PROMPT="%(?..%U%?%u:) $git_b %40&lt;...&lt;%/%(#.%U&gt;%u.%B&gt;%b) "
{% endhighlight %}
-with the following script "S55_git":http://www.jukie.net/~bart/conf/zsh.d/S55_git
+with the following script [S55_git](http://www.jukie.net/~bart/conf/zsh.d/S55_git).