找回密码
 注册
搜索
热搜: 超星 读书 找书
查看: 2520|回复: 0

[【推荐】] 恢复Debian下root用户bash高亮显示

[复制链接]
发表于 2009-8-6 14:42:08 | 显示全部楼层 |阅读模式
实际上只需要将ls等命令的--color选项打开即可, 而这些都已存在,只需将~/.bashrc中的注释恢复即可,即下面的蓝色代码:

# ~/.bashrc: executed by bash(1) for non-login shells.

export PS1='\\h:\\w\\$ '
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval \"`dircolors`\"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'

# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias vi='vim'
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|网上读书园地

GMT+8, 2024-11-22 16:37 , Processed in 0.192873 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表