[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash_profile



Raphaël 'SurcouF' Bordet <surcouf@debianfr.net> wrote:
| Le mercredi 07 septembre 2005 à 17:24 +0200, mess-mate a écrit :
| > Bonjour,
| > je viens de m'apercevoir que mon ~/.bash_profile n'est pas pris en
| > compte lors du login en interactif.
| > Par ailleurs y'a pas de bash_profile dans /etc.
| 
| L'équivalent est le fichier /etc/profile.
| 
| > Comment peut-on faire pour que celui-ci soit pris en compte ?
| 
| D'après le manuel de bash:
| 
|  «When  bash is invoked as an interactive login shell, or as a
| non-interactive shell with the --login option, it first reads and
| executes  commands  from  the file /etc/profile, if that file exists.
| After reading that file, it looks for ~/.bash_profile, ~/.bash_login,
| and ~/.profile, in that order, and reads and executes commands from the
| first one that exists and is readable.»
je sais :)

| 
| Peut-on donc voir à quoi ressemble ton ~/.bash_profile ?
| 
Comme au tien:

export HISTFILESIZE=1000
export HISTSIZE=1000
export HISTCONTROL=ignoredups

# include .bashrc if it exists

if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi
    
Il n'est pas pris en compte car mon HIST.... reste en 500 = le
default.

mess-mate                               
--
Whenever you find that you are on the side of the majority, it is time
to reform.
		-- Mark Twain



Reply to: