-
Notifications
You must be signed in to change notification settings - Fork 0
/
git.sh
23 lines (21 loc) · 740 Bytes
/
git.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
# For faster typing
alias g='git'
#export GIT_PS1_SHOWDIRTYSTATE=1
#export GIT_PS1_SHOWSTASHSTATE=1
#export GIT_PS1_SHOWUNTRACKEDFILES=1
#export GIT_PS1_SHOWUPSTREAM="auto"
#export GIT_PS1_SHOWCOLORHINTS=1
#
## assumes `xcode-select --install` already done on macOS
#source "/Library/Developer/CommandLineTools/usr/share/git-core/git-prompt.sh"
#
#if [ -n "${BASH_VERSION}" ]; then
# PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND ;}'__git_ps1 "\[\e[1m\]\w\[\e[0m\]" "\\\$ "'
#
# # autocomplete using alias
# source "/Library/Developer/CommandLineTools/usr/share/git-core/git-completion.bash"
# __git_complete g __git_main
#elif [ -n "${ZSH_VERSION}" ]; then
# precmd () { __git_ps1 "%B%~%b" "%s$ "; }
#fi