liwl
deepin
2020-05-31 03:00 检索Linux,修改PS变量
Reply Like 0 View the author
https://bbs.deepin.org/post/195300
检索Linux,修改PS变量
https://bbs.deepin.org/post/195300
检索Linux,修改PS变量
S1STR="[${USER}@${HOSTNAME}]$(__git_ps1)$";printf "%*s" $((COLUMNS-OFFSET-${#PS1STR})) "# $PWD")\e[u'Popular Ranking
ChangePopular Events
More
我在~/.bashrc里面最后添加一下内容:
出现了光标卡住不动的现象,也无法输入的现象(卡在函数__current_cursor_offset里面了,但是在脚本最后,如果这样 __current_cursor_offset 调用就不会卡住)。
如果添加下面的方式,会有注释中的问题。
请问各位大神,有什么方式在bash终端里右面显示路径