How can I permanently change the command prompt in OE 2.5 at my dm7080. I tried with "export PS1=...", but in a new terminal session it has not been saved.
howto change prompt
-
-
Isn't it a bash there?
Use ~/.bashrc then (in your home directory). -
Isn't it possible to change it permanently without using bashrc, so it is valid for all users (and without copying bashrc to all home dirs)
-
what is wrong on user@hostname ?
If you want to change hostname /etc/hostname is yours ...
-
add following files to the (root) home directory if they are'nt exising and add your prefered settings. This change is only valid for the user.
/etc/profile, /etc/bashrc ... are the global bash configuration files. If a ~/.profile and/or ~/.bashrc will be found, a global setting will be overwritten with the user setting~/.profile (example)
~/.bashrc (example)
Codeexport PS1='\[\033[1;31m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;36m\]\w\[\033[1;37m\]# \[\033[0m\]' export LS_OPTIONS='--color=auto' if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi
~./bash_aliases (example)
then reboot or reread the new bash configuration files to make the changes effective
. ~/.profile && . ~/.bashrc. && . ~/.bash_aliasesThis configuration will not be overwritten by an update!
-
Depending on the source revision of bash, the "right" way to set this globally for all users for an interactive shell would be /etc/bash.bashrc or /etc/bashrc.
For a login shell it would be /etc/profile.
Ymmv. -
Thanks for explaining, its working now