Skip to content

Instantly share code, notes, and snippets.

@ryokwkm
Last active October 8, 2018 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryokwkm/2f2e77d607f536445ab53e180a2a1655 to your computer and use it in GitHub Desktop.
Save ryokwkm/2f2e77d607f536445ab53e180a2a1655 to your computer and use it in GitHub Desktop.
# Git settings
# Git bashの場合は下記2行を削除またはコメントアウトしてください。
source ./git-prompt.sh
source ./git-completion.bash
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM="auto"
############### ターミナルのコマンド受付状態の表示変更
# \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\] \$ '
#export PS1='(\[\033[35;1m\]\h\[\033[m\])\[\033[36m\]\u:\[\033[m\]\[\033[37;1m\]\W\[\033[m\]\[\033[1;33m\]$(__git_ps1)\[\033[00m\]\$ ' #別パターン
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment