1

Post your .bashrc!

view story
linux-howto

https://bbs.archlinux.org – # # /etc/bash.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return # Create the prompt: Green for a normal user, RED for ROOT NORMAL="\[\e[0m\]" RED="\[\e[1;31m\]" GREEN="\[\e[1;32m\]" PS1="$GREEN\u[$NORMAL\w$GREEN]# $NORMAL" if [[ $EUID == 0 ]] ; then PS1="$RED\u[$NORMAL\w$RED]# $NORMAL" else PS1="$GREEN\u[$NORMAL\w$GREEN]# $NORMAL" fi alias vi=vim alias ls="ls --color=auto" alias less="less -R" alias lsa="ls -alh --color=always" alias (HowTos)