我的Linux $PS配置(命令行提示样式)

配置~/.bashrc

PS1='\e[33m[\u@\h:\w]\e[0m\n$'
PS2='> '
PS4='+ '

显示效果:

[xiwang@Linux01:~/tasks/]
$<command here>


<<<<<<<<<<<<

Working with Git repository.

export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]$(parse_git_branch)$'

                                                                                                                                                              


你可能感兴趣的:(linux,command)