Last active
June 9, 2019 23:36
-
-
Save varmil/a90604b69542a372eaf4 to your computer and use it in GitHub Desktop.
「Git補完をしらない」「git statusを1日100回は使う」そんなあなたに朗報【git-completionとgit-prompt】 ref: https://qiita.com/varmil/items/9b0aeafa85975474e9b6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# スクリプト読み込み | |
source $HOME/.git-completion.bash | |
source $HOME/.git-prompt.sh | |
# プロンプトに各種情報を表示 | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
GIT_PS1_SHOWUPSTREAM=1 | |
GIT_PS1_SHOWUNTRACKEDFILES= | |
GIT_PS1_SHOWSTASHSTATE=1 | |
############### ターミナルのコマンド受付状態の表示変更 | |
# \u ユーザ名 | |
# \h ホスト名 | |
# \W カレントディレクトリ | |
# \w カレントディレクトリのパス | |
# \n 改行 | |
# \d 日付 | |
# \[ 表示させない文字列の開始 | |
# \] 表示させない文字列の終了 | |
# \$ $ | |
export PS1='\[\033[1;32m\]\u\[\033[00m\]:\[\033[1;34m\]\w\[\033[1;31m\]$(__git_ps1)\[\033[00m\] \$ ' | |
############## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# スクリプト読み込み | |
source $HOME/.git-completion.bash | |
source $HOME/.git-prompt.sh | |
# プロンプトに各種情報を表示 | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
GIT_PS1_SHOWUPSTREAM=1 | |
GIT_PS1_SHOWUNTRACKEDFILES= | |
GIT_PS1_SHOWSTASHSTATE=1 | |
############### ターミナルのコマンド受付状態の表示変更 | |
# \u ユーザ名 | |
# \h ホスト名 | |
# \W カレントディレクトリ | |
# \w カレントディレクトリのパス | |
# \n 改行 | |
# \d 日付 | |
# \[ 表示させない文字列の開始 | |
# \] 表示させない文字列の終了 | |
# \$ $ | |
export PS1='\[\033[1;32m\]\u\[\033[00m\]:\[\033[1;34m\]\w\[\033[1;31m\]$(__git_ps1)\[\033[00m\] \$ ' | |
############## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment