View previous topic :: View next topic |
Author |
Message |
Dais l33t


Joined: 05 Aug 2004 Posts: 977 Location: Québec
|
Posted: Mon Feb 21, 2005 7:44 pm Post subject: [console] bash au lieu de l'user (résolu) |
|
|
Bon, ça fait un bout que je me pose cette question existentielle !
Il y a un bon bout de temps, j'avais toujours le nom de l'utilisateur/machine dans la console, avec de la couleur en plus (vert pour user, rouge si root).
Mais depuis une mise à jour lointaine, je n'ai qu'un simple "bash-2.05b" ... je peux bien faire un env-update && source /etc/profile, mais il suffit que je change d'utilisateur pour que cela revienne au bash-2.05b ..
Comment avoir toujours le nom de l'user courant ? _________________ Tout ce que je suis n'est que cause
Tout ce que je suis n'est que conséquence
Pourquoi s'attacher à toutes ces choses
Pourquoi continuer dans la souffrance ?
-
Shiki Soku Ze Ku, Ku Soku Ze Shiki
Last edited by Dais on Mon Feb 21, 2005 8:13 pm; edited 1 time in total |
|
Back to top |
|
 |
manu.acl Guru


Joined: 29 Jan 2005 Posts: 426 Location: Paris
|
Posted: Mon Feb 21, 2005 8:07 pm Post subject: |
|
|
perso j'ai mis dans mon ~/.bashrc
Code: | source /etc/profile |
|
|
Back to top |
|
 |
kepon n00b

Joined: 17 Feb 2005 Posts: 13 Location: Rouen - France
|
Posted: Mon Feb 21, 2005 8:08 pm Post subject: |
|
|
soit : Code: | export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' |
dans les ~/.bashrc de tes users, soit simplement Code: | source /etc/profile | dedans. _________________ Codito ergo sum |
|
Back to top |
|
 |
Dais l33t


Joined: 05 Aug 2004 Posts: 977 Location: Québec
|
Posted: Mon Feb 21, 2005 8:11 pm Post subject: |
|
|
Je crois que je vais y aller avec le source /etc/profile dans le .bashrc :p
EDIT: bon bah ça roule :p merci bieng ^^ _________________ Tout ce que je suis n'est que cause
Tout ce que je suis n'est que conséquence
Pourquoi s'attacher à toutes ces choses
Pourquoi continuer dans la souffrance ?
-
Shiki Soku Ze Ku, Ku Soku Ze Shiki
Last edited by Dais on Mon Feb 21, 2005 8:13 pm; edited 1 time in total |
|
Back to top |
|
 |
Monrake Apprentice

Joined: 08 Nov 2004 Posts: 214
|
Posted: Mon Feb 21, 2005 8:13 pm Post subject: |
|
|
Comment j'ai fait pour vivre sans...  |
|
Back to top |
|
 |
Enlight Advocate


Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Mon Feb 21, 2005 8:26 pm Post subject: |
|
|
Amha, juste pour être sûr, quand c'est un user normal vous avez user@machine et quand c'est le root vous avez que le nom de la machine? |
|
Back to top |
|
 |
Dais l33t


Joined: 05 Aug 2004 Posts: 977 Location: Québec
|
Posted: Mon Feb 21, 2005 8:31 pm Post subject: |
|
|
Oui Enlight. _________________ Tout ce que je suis n'est que cause
Tout ce que je suis n'est que conséquence
Pourquoi s'attacher à toutes ces choses
Pourquoi continuer dans la souffrance ?
-
Shiki Soku Ze Ku, Ku Soku Ze Shiki |
|
Back to top |
|
 |
kernelsensei Bodhisattva


Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Mon Feb 21, 2005 8:31 pm Post subject: |
|
|
chez moi c'est comme ca oui _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
 |
bosozoku Advocate


Joined: 11 Jan 2004 Posts: 2431 Location: Roazhon
|
Posted: Mon Feb 21, 2005 8:37 pm Post subject: |
|
|
Enlight wrote: | Amha, juste pour être sûr, quand c'est un user normal vous avez user@machine et quand c'est le root vous avez que le nom de la machine? |
Oui mais tu peux le changer comme bon te semble dans le .bashrc de l'utilisateur concerné ! _________________ Stationlinux.org - Wiki Fvwm FR - Config Fvwm |
|
Back to top |
|
 |
|