From 23c84ca60676d1d8995c517c02ca46cbe4492605 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Wed, 25 Nov 2020 20:44:26 -0500 Subject: [PATCH] remove bash fuzzy --- bin/git-checkout-fuzzy-2 | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 bin/git-checkout-fuzzy-2 diff --git a/bin/git-checkout-fuzzy-2 b/bin/git-checkout-fuzzy-2 deleted file mode 100755 index de8abe6..0000000 --- a/bin/git-checkout-fuzzy-2 +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -gcb() { - result=$(git branch -a --color=always | grep -v '/HEAD\s' | sort | - fzf --height 50% --border --ansi --tac --preview-window right:70% \ - --preview 'git log --oneline --graph --date=short --pretty=\"format:%C(auto)%cd %h%d %s\" $(sed s/^..// <<< {} | cut -d\" \" -f1) | head -'$LINES | - sed 's/^..//' | cut -d' ' -f1) - - if [[ $result != "" ]]; then - if [[ $result == remotes/* ]]; then - git checkout --track $(echo $result | sed 's#remotes/##') - else - git checkout "$result" - fi - fi -} - -gcb