摘要: 默认的提示符显示方式如下: [root@localhost foldername]# 由于太长,希望能缩短到: [foldername]# 修改方式: # vim /etc/bashrc 找到第41行,或搜索: [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \ 阅读全文
posted @ 2016-10-27 16:52 MysticGrrrr 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 批量替换: #:%s/source_pattern/target_pattern/g "My Custom Configuration filetype plugin indent on "开启插件syntax on "打开颜色高亮set nocompatible "设置为不兼容模式(兼容vi)se 阅读全文
posted @ 2016-10-27 16:47 MysticGrrrr 阅读(169) 评论(0) 推荐(0) 编辑