![]() ![]()
If something is stuck outputting colour when you don't want it to, I use this sed line to strip the escape sequences: sed "s/\*//gi" (For best results, also use alias clear="echo -e '\e[2J\n\n'".) Puts a bar at the top of your terminal with some random info. You can set your PS1 (shell prompt) to use colours. If you use -color=always, it'll use colour even when piping, which confuses things.Ĭolors specified by: export LS_COLORS='rs=0:di=01 34:ln=01 36:mh=00:pi=40 33' You can also use export GREP_OPTIONS='-color=auto' to make it persistent without an alias. You can also syntax highlight code on the terminal by using Pygments as a command-line tool. bashrc and answer my own question Jeopardy Style.Ī lot of editors have syntax highlighting support. For example: alias less='less -RAW-CONTROL-CHARS' These commands seem to use the standard " ANSI escape sequences". Use color for some Unix commands ( ls, grep, less, vim) and the Bash prompt. Instead, I tweak my terminal's color configuration.
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |