Parcourir la source

fix: remove old git setup items, add git switch alias

Kyle P Davis il y a 1 an
Parent
commit
1cc5b74bbe
2 fichiers modifiés avec 1 ajouts et 14 suppressions
  1. 0 14
      gimmes/git
  2. 1 0
      gimmes/git-extras

+ 0 - 14
gimmes/git

@@ -3,18 +3,4 @@ set -o errexit -o pipefail
 
 has git  ||  gimme_pkg git
 
-[[ "$(git config --global --get core.pager)" ]]  ||  git config --global core.pager 'less --raw-control-chars'
-
 [[ "$(git config --global --get color.ui)" ]]  ||  git config --global color.ui true
-
-if ! git --version | grep -q 'git version 1'; then
-	[[ "$(git config --global --get push.default)" ]]  ||  git config --global push.default simple
-fi
-
-if ! [[ "$(git config --global --get credential.helper)" ]]; then
-	if [[ "$OS" = "Darwin" ]]; then
-		git config --global credential.helper "osxkeychain"
-	else
-		git config --global credential.helper "cache --timeout=3600"
-	fi
-fi

+ 1 - 0
gimmes/git-extras

@@ -11,4 +11,5 @@ if ! [[ "$(git alias)" ]]; then
 	git alias co checkout
 	git alias di diff
 	git alias st status
+	git alias sw switch
 fi