Skip to content

Instantly share code, notes, and snippets.

View jasongregori's full-sized avatar

Jason Gregori jasongregori

View GitHub Profile
function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
end
function fish_right_prompt
set -l cyan (set_color cyan)
@jasongregori
jasongregori / gist:2821444
Created May 28, 2012 22:18
weakself code snippet: my most used code snippet
__weak __typeof(&*self)weakself = self;