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:
parent
f85e083345
commit
6ca1241b06
2 changed files with 26 additions and 0 deletions
25
.highlight/themes/base16.theme
Normal file
25
.highlight/themes/base16.theme
Normal 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
1
.zshrc
|
@ -48,6 +48,7 @@ esac
|
||||||
alias ct="clear && task"
|
alias ct="clear && task"
|
||||||
alias tt="taskwarrior-tui"
|
alias tt="taskwarrior-tui"
|
||||||
alias grep='grep -EIs --color=auto --exclude-dir=.git'
|
alias grep='grep -EIs --color=auto --exclude-dir=.git'
|
||||||
|
alias highlight='highlight --out-format=xterm256 --style=base16'
|
||||||
|
|
||||||
HISTFILE=~/.zsh_history
|
HISTFILE=~/.zsh_history
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
|
|
Loading…
Add table
Reference in a new issue