У нас вы можете посмотреть бесплатно Colour Your Cygwin или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Learn how to add colour to standard tools in Cygwin (ls, grep, less), to your own "echo" commands, and your Bash shell prompt.
Topic Index
===========
0:00 Intro
0:30 ls
2:55 grep
5:00 less
7:30 Printing in colour (ANSI escape codes)
12:05 Bash shell prompt (PS1 variable)
Syntax/Sample Commands
======================
List directory entries with colour:
ls --color /some_folder
Search for text patterns, printing the matches in red:
grep --color -i 'penny' /tmp/sample_files/*
Force grep to always output the colour codes; and
Pass to "less" and have it interpret/apply the codes
grep --color=always -i 'penny' /tmp/sample_files/* | less -R
Printing coloured text to your terminal:
echo -e "I like the colour \e[34mblue\e[0m, don't you?"
Modifying your Bash shell prompt:
export PS1='
\e[32m\u \e[33m\w\e[0m
\$ '
References
=========
ANSI Colour escape codes:
https://en.wikipedia.org/wiki/ANSI_es...
Special characters for the Bash prompt variable:
man --pager='less -p ^PROMPTING' bash