Re: [vim ] 一些小問題

看板Editor作者 (柔弱氣質偽少女)時間8年前 (2016/03/06 18:33), 編輯推噓1(103)
留言4則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《splasky (splasky)》之銘言: : 4.在windows下使用git bash 最後會顯示目前所在git的branch分支 : 例如: ~/aaaa/aaa (master) : linux Terminal 下也可以作到嘛? : 問題有點多 還請各位不吝賜教 : 謝謝 http://rgba.tumblr.com/post/520663635/including-current-git-branch-in-your-bash-prompt 照這個去改 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.252.204.103 ※ 文章網址: https://www.ptt.cc/bbs/Editor/M.1457260400.A.944.html

03/13 10:23, , 1F
git官方source包裡也有現成類似的script, source它,並加些
03/13 10:23, 1F

03/13 10:23, , 2F
東西到~/.bashrc即可.
03/13 10:23, 2F

03/13 10:23, , 3F
03/13 10:23, 3F

03/13 10:23, , 4F
在 contrib/completion/git-prompt.sh 內有使用說明.
03/13 10:23, 4F
文章代碼(AID): #1Mt0Tmb4 (Editor)
文章代碼(AID): #1Mt0Tmb4 (Editor)