From d6db0e1f00fa1c397e69ad36bb3b62ade83cb4ad Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 17 Dec 2019 17:13:48 +0100 Subject: [PATCH] Add checkout command --- bashrc | 1 + bin/checkout | 1 + 2 files changed, 2 insertions(+) create mode 100755 bin/checkout diff --git a/bashrc b/bashrc index 9c03d44..14bfe46 100644 --- a/bashrc +++ b/bashrc @@ -23,6 +23,7 @@ alias workspace='cd ~/workspace' alias shit='git' alias ranger='source ranger' alias ta='tmux a -t' +alias co='checkout' stty -ixon diff --git a/bin/checkout b/bin/checkout new file mode 100755 index 0000000..243799b --- /dev/null +++ b/bin/checkout @@ -0,0 +1 @@ +git checkout $(git for-each-ref --format='%(refname:short)' refs/heads/* | dmenu -b)