Skip to content

Instantly share code, notes, and snippets.

View jgosmann's full-sized avatar

Jan Gosmann jgosmann

View GitHub Profile
function! PythonAndRopeComplete(findstart, base)
if a:findstart
let result = pythoncomplete#Complete(a:findstart, a:base)
let s:useRope = 1
if result > 0
silent! if len(pythoncomplete#Complete(0, a:base)) > 0
let s:useRope = 0
endif
endif
if s:useRope
@jgosmann
jgosmann / git_svn_bash_prompt.sh
Created June 14, 2011 21:03 — forked from woods/git_svn_bash_prompt.sh
Set color bash prompt according to git/svn branch, and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE: