Ubuntu中删掉Termianl中长长的目录路径修改 ~/.bashrc
比如用 gedit ~/.bashrc
sudo gedit /usr/share/base-files/dot.bashrc 找到里面的
PS1="${debian_chroot:+($debian_chroot)}u@h:w$ "
修改为
PS1="${debian_chroot:+($debian_chroot)}u@h:W$ " 即 小写的 w 改为大写的 W 这里的 PS1 变量定义了终端里 bash 的提示符
小写 w 表示全路径, 大写 W 表示当前目录 Ubuntu 10.04 安装记录Ubuntu 9.10安装10.04的 Ambiance 主题[图文]相关资讯 ubuntu安装 Windows 7
- Windows 7有了SP2,但不叫这个名字 (05月19日)
- Linux系统入门教程: 当使用代理服 (11/08/2015 09:04:46)
- MacBook Air 安装 Ubuntu 双系统 (01/27/2015 16:21:32)
| - Linux系统教程:如何通过代理服务 (03月17日)
- 微软:明年 10 月 31 日前仍可买到 (11/04/2015 08:08:54)
- 回顾 Windows 30 年:Windows 7 是 (10/05/2014 09:10:18)
|
本文评论 查看全部评论 (0)