Skip to content

Commit d640d09

Browse files
authored
Update mybashrc.sh
1 parent af9b6d2 commit d640d09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code_snippets/mybashrc.sh

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ export PS4='+{\$LINENO:\${FUNCNAME[0]}} '
1919
####################################################################################################
2020
# git
2121

22+
### 注:原版的PS1变量为如下形式:
23+
### [root@druidcluster1 ~]# echo $PS1
24+
### [\u@\h \W]\$
25+
### 恢复时直接用:export PS1="[\u@\h \W]\$ "
26+
### 或者有的系统好像可以省略export直接输入PS1="[\u@\h \W]\$ "即可?
27+
2228
## git branch color 1
2329

2430
function parse_git_branch_and_add_brackets {

0 commit comments

Comments
 (0)