1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

bash設定

Posted at

個人的bash設定

  • 随時更新していく予定。

gitでブランチが表示されるように設定する

source /usr/local/etc/bash_completion.d/git-prompt.sh
source /usr/local/git/contrib/completion/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\n\$ '
  • 上記を.bash_profileに追加(.bashrcでもいいかも?)

  • __git_ps1: command not foundこんなエラーが出た場合

    • gitcomprication.bash を配置
      • 詳しくはここ参照しました

まだまだ、ターミナルが使い辛いので、設定していく予定。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?