我有下一行.bashrc
:
PS1="\e[0;32m[ \w ]\n#\e[m "
设置非常简单的绿色欢迎线。在 Ubuntu 上,使用向上/向下箭头加载以前的命令会在命令行中添加额外的符号:
[ /tmp ]
# echo "hello there"
hello there
[ /tmp ]
# echecho "hello there"
注意ech
最后一个命令前面的符号。这些符号不能被编辑——光标不去那里。
我做错了什么?
我有下一行.bashrc
:
PS1="\e[0;32m[ \w ]\n#\e[m "
设置非常简单的绿色欢迎线。在 Ubuntu 上,使用向上/向下箭头加载以前的命令会在命令行中添加额外的符号:
[ /tmp ]
# echo "hello there"
hello there
[ /tmp ]
# echecho "hello there"
注意ech
最后一个命令前面的符号。这些符号不能被编辑——光标不去那里。
我做错了什么?