Suggestion: Terminal customization

Asked by Alessio L.

What about inserting a tab to customize the terminal (.bashrc file)?

Something like edit the title shown:

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;Terminal @ \w\a\]$PS1" # For Example
    ;;
*)
    ;;
esac

Enable/Disable colors and entries selection:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='$: ' # For Example
fi

And greeting message:

*Add as last line*echo "MESSAGE"

that would be nice.

Thanks in advance

Alex

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Tweak Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ding Zhou (tualatrix) said :
#1

Hello! Thanks for your idea! It's cool!

I will try to implement in the future version.

Revision history for this message
Alessio L. (scionescire) said :
#2

Glad you like it!

If you need more infos or something just call ;)

(I've got a bash script you can examinate)

Can you help with this problem?

Provide an answer of your own, or ask Alessio L. for more information if necessary.

To post a message you must log in.