PERSONALIZARE TERMINAL SI NANO

Pentru a colora prompt-ul din Terminal:

Pentru utilizatorul user (cursor verde):

nano .bashrc

Se decomenteaza force_color_prompt=yes:

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes

Culoarea implicita este verde. Modificarea culorii se face inlocuind „32” cu alta valoare:

PS1=........"\[\033[01;32m\]\u@\h:\w\$"

Codul culorilor:
Negru: 30
Albastru: 34
Cyan: 36
Verde: 32
Purpuriue: 35
Rosu: 31
Alb: 37
Galben: 33

Pentru utilizatorul root:

cd /root
nano .bashrc

Se inlocuieste cu continutul urmator:

# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘
# umask 022
# You may uncomment the following lines if you want `ls’ to be colorized:
export LS_OPTIONS=’–color=auto’
eval „`dircolors`”
alias ls=’ls $LS_OPTIONS’
alias ll=’ls $LS_OPTIONS -l’
alias l=’ls $LS_OPTIONS -lA’
#
# Some more alias to avoid making mistakes:
# alias rm=’rm -i’
# alias cp=’cp -i’
# alias mv=’mv -i

Apoi Ctrl+o si Ctrl+x
Pentru afisarea numarului liniilor si coloanelor:

nano /etc/nanorc

Se elimina # din fata # set constantshow

## Constantly display the cursor position in the statusbar.  Note that
## this overrides „quickblank”.
# set constantshow
set constantshow
## (The old form, ‘const’, is deprecated.)

Apoi Ctrl+o si Ctrl+x