diff options
| author | Franck Cuny <franck.cuny@gmail.com> | 2013-12-09 22:08:44 -0800 |
|---|---|---|
| committer | Franck Cuny <franck.cuny@gmail.com> | 2013-12-09 22:08:44 -0800 |
| commit | 7286cd50a139faef33da5eb50ad76b605e5886aa (patch) | |
| tree | d8a0dbc50249fd17dc33c1e654e011ba576eccd2 /_posts/2008-06-26-git-branch-everywhere.md | |
| parent | Remove a bunch of unused files. (diff) | |
| download | lumberjaph-7286cd50a139faef33da5eb50ad76b605e5886aa.tar.gz | |
Mostly, fix broken links.
Diffstat (limited to '')
| -rw-r--r-- | _posts/2008-06-26-git-branch-everywhere.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_posts/2008-06-26-git-branch-everywhere.md b/_posts/2008-06-26-git-branch-everywhere.md index bde1ffa..ed93df2 100644 --- a/_posts/2008-06-26-git-branch-everywhere.md +++ b/_posts/2008-06-26-git-branch-everywhere.md @@ -9,7 +9,7 @@ The current trend is to have the name of the current git branch everywhere. Pers 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 vim %} -set statusline=%<[%n]%m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).':'.&ff}%{g:gitCurrentBranch}%{']'}%y\ %F%=%l,%c%V%8P +set statusline=%<[%n]%m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).':'.&ff}%{g:gitCurrentBranch}%{']'}%y\ %F%=%l,%c%V%8P autocmd BufEnter * :call CurrentGitBranch() let g:gitCurrentBranch = '' @@ -32,7 +32,7 @@ and my zshrc: {% highlight vim %} local git_b git_b='$(get_git_prompt_info '%b')' -PROMPT="%(?..%U%?%u:) $git_b %40<...<%/%(#.%U>%u.%B>%b) " +PROMPT="%(?..%U%?%u:) $git_b %40>...<%/%(#.%U>%u.%B>%b) " {% endhighlight %} with the following script [S55_git](http://www.jukie.net/~bart/conf/zsh.d/S55_git). |
