Deutsch English Français Italiano |
<vcguof$hca7$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Fran=C3=A7ois_Patte?= <francois.patte@mi.parisdescartes.fr> Newsgroups: comp.unix.shell Subject: bash prompt question Date: Thu, 19 Sep 2024 12:34:55 +0200 Organization: A noiseless patient Spider Lines: 25 Message-ID: <vcguof$hca7$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 19 Sep 2024 12:34:56 +0200 (CEST) Injection-Info: dont-email.me; posting-host="da2e9d6d3f89debf573ffa011985ddee"; logging-data="569671"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185DMZM9D6FAB8yza3IidMD" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:d6e6XESPx/6ilwN6mXA4dkcLmPM= Content-Language: en-GB, en-US Bytes: 1619 Bonjour, Wanting to personalize my bash prompt I wrote in my .bashrc file (with the help of "Learning the BASH shell"): export PS1='\[\e[1;35m\]\u@\h -\d- ${text} \W\[\e[m]\]\$ ' What I wanted by this : specific color user@host the date wether I am on a local machine: nothing or on a remote one: ssh and the directory It works but not very well: if I use the up/down arrows to call back a previous command, the behaviour changes, sometimes as if I used the keys "Inser" or "Suppr" and at the end the usage becomes awfull. What did I do wrong? I hope to be understable in English language.... Thank you for helping. François Patte