Add highlighter support

A new config file for highlighter and a zsh alias to make it behave as
expected when invoked, even if the alias is over-reaching a bit.
This commit is contained in:
Trysdyn Black 2021-04-05 01:20:16 -07:00
parent f85e083345
commit 6ca1241b06
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,25 @@
--%%base16_template: highlight##default %%
Description = "Base16 "
Default = { Colour = "#f0f0f0" }
Canvas = { Colour="#000000" }
Number = { Colour="#f7941d" }
Escape = { Colour="#c0c0c0" , Italic=true}
String = { Colour="#8dc73f" }
BlockComment = { Colour="#606060" }
StringPreProc = String
LineComment = BlockComment
Operator = { Colour="#f0f0f0" }
LineNum = { Color="#606060" }
PreProcessor = { Colour="#a16946" }
Interpolation = Escape
Keywords = {
{ Colour="#ed008c", Bold=true},
{ Colour="#f7c61d"},
{ Colour="#3f7fff"},
{ Colour="#f7c61d"},
{ Colour="#f7c61d" }
}
-- %%base16_template_end%%

1
.zshrc
View file

@ -48,6 +48,7 @@ esac
alias ct="clear && task"
alias tt="taskwarrior-tui"
alias grep='grep -EIs --color=auto --exclude-dir=.git'
alias highlight='highlight --out-format=xterm256 --style=base16'
HISTFILE=~/.zsh_history
HISTSIZE=10000