Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active November 14, 2024 11:27
The introduction to Reactive Programming you've been missing
@KELiON
KELiON / fish_prompt.fish
Last active September 17, 2021 21:11
Fish-fish shell prompt with ruby version and git info
function _git_branch_name
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (git status -s --ignore-submodules=dirty ^/dev/null)
end
function _rb_prompt
echo (rbenv version | awk '{print $1}')