LoginSignup
0
0

More than 5 years have passed since last update.

gitを使いやすくする

Posted at

まんま参考元なんだけど自分用に置いておかないと忘れる

$ vim ~/.bashrc

下記を追加

.bashrc
# gitの補完する
source /usr/local/etc/bash_completion.d/git-prompt.sh
source /usr/local/etc/bash_completion.d/git-completion.bash

# gitのブランチ名表示する
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\h\[\033[00m\]:\W\[\033[32m\]$(__git_ps1 [%s])\[\033[00m\]\n\$ '

# hubをgitで使えるようにする
eval "$(hub alias -s)"

参考元
http://qiita.com/koyopro/items/3fce94537df2be6247a3

0
0
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
0
0