Unix::/root/.bashrc
De wiki_pcwiki2
Aller à la navigationAller à la recherche
KEYWORDS: BASHRC
Le 16/11/2024:
Le problème avec Débian, c'est que un nouveau shell ne charge pas /root/.bashrc
Moralité: aucun alias
Solution trouvée today (à ajouter dans /etc/bash.bashrc):
# Ajout du 16/11/2024 dans /etc/bash.bashrc pour que tous les nouveaux shell aient accès à /root/.bashrc
if [ "${PS1-}" ]
then
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]
then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /root/.bashrc ]
then
. /root/.bashrc
fi
fi
fi