# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If running interactively, then:
if [ "$PS1" ]; then
# enable color support of ls and also add handy aliases
eval `dircolors -b`
alias ls='ls --color=auto'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -lA'
#alias grep='grep --color=always'
# set a fancy prompt
PS1='\u@\h:\w\$ '
# If this is an xterm set the title to user@host:dir
#case $TERM in
#xterm*)
# PROMPT_COMMAND='echo -ne "033円]0;${USER}@${HOSTNAME}: ${PWD}007円"'
# ;;
#*)
# ;;
#esac
fi
if [ `whoami` = "root" ]; then
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
export PATH
fi
[^] # Re: grep grippe
Posté par garden . En réponse au journal grep grippe. Évalué à 1.
Le traitement est donc de placer un # devant la ligne fautive.
alias grep='grep --color=always'
Voir tout le fichier ci-dessous, et merci les gars,
----------------------------------------------------------------------------------------------------
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If running interactively, then:
if [ "$PS1" ]; then
# enable color support of ls and also add handy aliases
eval `dircolors -b`
alias ls='ls --color=auto'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -lA'
#alias grep='grep --color=always'
# set a fancy prompt
PS1='\u@\h:\w\$ '
# If this is an xterm set the title to user@host:dir
#case $TERM in
#xterm*)
# PROMPT_COMMAND='echo -ne "033円]0;${USER}@${HOSTNAME}: ${PWD}007円"'
# ;;
#*)
# ;;
#esac
fi
if [ `whoami` = "root" ]; then
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
export PATH
fi