my setup:我用于开发的设置 源码
我在bash个人资料中使用过的一些设置 在运行时查找git分支 git_branch () { git branch 2> /dev/null | grep ' ^* ' | colrm 1 2 } 为了更好地查看git log alias graph= " git log --all --decorate --oneline --graph " 更新PS1 export PS1= " [\d \t\[\033[36m\] \u@\h:\[\033[32m\]\w\[\033[33m\] \$ (git_branch)\[\033[00m\]]$ "
下载地址
用户评论