Copy a font file in the directory /usr/local/share/fonts (for all users) or ~/.fonts (for a specific user).
e.x: user:$ sudo cp *.otf /usr/local/share/fonts
Μια ζωή εδώ...
12 Μαρ 2013
Prompt color: root.
# leafpad /root/.bashrc
-): Go to line 39 and uncomment it, thus:
force_color_prompt=yes
-): Go to line 53 and where it has 01;32m, (for example), change it to a colour that suits you.
As an example, for a red coloured root:# prompt, [01;31m\], you will need to change the code [01;XXm\] in 3 places within the syntax:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[01;31m\]:\[\033[01;31m\]\w\[\033[00m\]\$ '
for: root:#
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;31m\]:\[\033[00m\]\[\033[00m\]\$ '
-): The new look will only appear in new terminal sessions.
-): colors:
(the syntax is 00;XX)
[00;30] Black
[00;31] Red
[00;32] Green
[00;33] Yellow
[00;34] Blue
[00;35] Magenta
[00;36] Cyan
[00;37] White
-): [Replace [00;XX] with [01;XX] to get a colour variation].
-): Go to line 39 and uncomment it, thus:
force_color_prompt=yes
-): Go to line 53 and where it has 01;32m, (for example), change it to a colour that suits you.
As an example, for a red coloured root:# prompt, [01;31m\], you will need to change the code [01;XXm\] in 3 places within the syntax:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[01;31m\]:\[\033[01;31m\]\w\[\033[00m\]\$ '
for: root:#
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;31m\]:\[\033[00m\]\[\033[00m\]\$ '
-): The new look will only appear in new terminal sessions.
-): colors:
(the syntax is 00;XX)
[00;30] Black
[00;31] Red
[00;32] Green
[00;33] Yellow
[00;34] Blue
[00;35] Magenta
[00;36] Cyan
[00;37] White
-): [Replace [00;XX] with [01;XX] to get a colour variation].
Prompt colour: user.
-): As $ user, with your favourite text editor:
$ <editor> ~/.bashrc
Go to line 39 and uncomment it, thus:
force_color_prompt=yes
-): Go to line 53 and where it has 01;32m, (for example), change it to a colour that suits you.
As an example, for a cyan coloured user~:$ prompt, [01;36m\], you will need to change the code [01;XXm\] in 3 places within the syntax:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;36m\]\u@\h\[\033[01;36m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
e.x all green:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;32m\]:\[\033[01;32m\]\w\[\033[01;32m\]\$ '
for user:$
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\u\[\033[01;34m\]:\[\033[00m\]\[\033[00m\]\$ '
-): The new look will only appear in new terminal sessions.
-): colors:
(the syntax is 00;XX)
[00;30] Black
[00;31] Red
[00;32] Green
[00;33] Yellow
[00;34] Blue
[00;35] Magenta
[00;36] Cyan
[00;37] White
-): [Replace [00;XX] with [01;XX] to get a colour variation].
$ <editor> ~/.bashrc
Go to line 39 and uncomment it, thus:
force_color_prompt=yes
-): Go to line 53 and where it has 01;32m, (for example), change it to a colour that suits you.
As an example, for a cyan coloured user~:$ prompt, [01;36m\], you will need to change the code [01;XXm\] in 3 places within the syntax:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;36m\]\u@\h\[\033[01;36m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
e.x all green:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;32m\]:\[\033[01;32m\]\w\[\033[01;32m\]\$ '
for user:$
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\u\[\033[01;34m\]:\[\033[00m\]\[\033[00m\]\$ '
-): The new look will only appear in new terminal sessions.
-): colors:
(the syntax is 00;XX)
[00;30] Black
[00;31] Red
[00;32] Green
[00;33] Yellow
[00;34] Blue
[00;35] Magenta
[00;36] Cyan
[00;37] White
-): [Replace [00;XX] with [01;XX] to get a colour variation].
Εγγραφή σε:
Αναρτήσεις (Atom)