Вернуться назад

Как раскрасить консоль на Ubuntu

nano ~/.bashrc

 

ищем и устанавливаем параметр force_color_prompt:

force_color_prompt=yes

ищем строку

if [ "$color_prompt" = yes ]then

, и параметр PS1 на следующей строке устанавливаем:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

 

 

Чтобы nano  подсвечивал синтаксис

 

nano ~/.nanorc

Вставляем

include /usr/share/nano/java.nanorc
include /usr/share/nano/debian.nanorc
include /usr/share/nano/makefile.nanorc
include /usr/share/nano/objc.nanorc
include /usr/share/nano/mgp.nanorc
include /usr/share/nano/ruby.nanorc
include /usr/share/nano/asm.nanorc
include /usr/share/nano/php.nanorc
include /usr/share/nano/tcl.nanorc
include /usr/share/nano/groff.nanorc
include /usr/share/nano/tex.nanorc
include /usr/share/nano/sh.nanorc
include /usr/share/nano/patch.nanorc
include /usr/share/nano/c.nanorc
include /usr/share/nano/css.nanorc
include /usr/share/nano/gentoo.nanorc
include /usr/share/nano/python.nanorc
include /usr/share/nano/xml.nanorc
include /usr/share/nano/ocaml.nanorc
include /usr/share/nano/cmake.nanorc
include /usr/share/nano/html.nanorc
include /usr/share/nano/fortran.nanorc
include /usr/share/nano/mutt.nanorc
include /usr/share/nano/man.nanorc
include /usr/share/nano/pov.nanorc
include /usr/share/nano/nanorc.nanorc
include /usr/share/nano/perl.nanorc
include /usr/share/nano/awk.nanorc


igel
Дата: 25 января 2019 г. в 01:24:39

Автор: igel