customizing the prompt
Hi guys,
I'm interested in modifying my gnome-terminal prompt, and I'm reading the ''Bash prompt How to'' from TheLinuxDocumentationProject. How and where can I take the VGA font rpm for my emulator terminal in Centos 6? thanks |
|
Quote:
I thought, reading in internet, this font is obsolete...so what font do you advise me to have a more cool and friendly prompt? |
I am a nonno but I admit to being totally cool and friendly. ;)
Have a look in /usr/share/consolefonts/ if that's where they're kept in CentOS This guy has some ideas. Check it out. If you find something cool you can tell us. ciao, jdk |
Quote:
|
Quote:
Code:
PS1="\[\033[1;36m\][\u@\[\033[1;37m\]\h:\[\033[1;33m\]\w]\\$\[\033[0m\] " Code:
[user@hostname:directory]$ Code:
[user@hostname:directory]$ |
Quote:
Hi TBOne thanks for answering!! I've already colored my prompt, but now I'd want to use some kind of special caracter like this '---' to create a sort of a 'futuristic architecture'...like this http://imagecdn.maketecheasier.com/2...hprompts-7.jpg , but in many linux documentation they talk about installing some special font (like VGA font but maybe it is very old) to visualize the exact escape sequencing...infact, if I use some of the prompt configuration posted in internet, I don't have the same result! :( The problem is that I don't know what kind of font I need and how to use it (i'm trying to learn the art of scripting in shell, and maybe this will b my first ''serious'' script :) |
not sure if this is what you are looking for, but those strange-looking lines and stuff are Extended ASCII (see here: http://www.cdrummond.qc.ca/cegep/inf...iles/ascii.htm). the Terminus-font should be able to render this i think.
|
You can customize your prompt with symbols from the Unicode table. To generate Unicode characters you have to use a terminal or an editor that support them. To type them, press simultaneously Ctrl-Shft-U, then type the code and press enter. The unicode character will appear, provided you have a font from which that character is available. Gnome-terminal and Firefox support this method.
In alternative you can open a VIM session, press I to enter in insert mode, then press Ctrl-V, then U, then the code and the character appears. You can copy and paste them in your PS1 assignment statement and the trick is done. For example I have the following statements in my .bashrc: Code:
# Code:
┌─[colucix@ocean-4]-[~] |
Quote:
Thanks colucix, this is what I'm looking for!! :) Have a nice day! |
You're welcome! :)
|
All times are GMT -5. The time now is 07:50 PM. |