adding bash_profile

master
Cian Hatton 3 years ago
parent 85fd11c824
commit 2dc1a2f98b

@ -0,0 +1,15 @@
function _branches() {
if [ -n "$1" ]; then
echo "$1"
return
else
git for-each-ref --sort=committerdate refs/heads/ | awk -F'heads/' '{ print $NF }' | fzf
fi
}
function cb() {
branch=$(_branches)
git checkout "${branch}"
}
Loading…
Cancel
Save