From 6ca1241b06da85e483b55d826faafbc168efa176 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Mon, 5 Apr 2021 01:20:16 -0700 Subject: [PATCH] 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. --- .highlight/themes/base16.theme | 25 +++++++++++++++++++++++++ .zshrc | 1 + 2 files changed, 26 insertions(+) create mode 100644 .highlight/themes/base16.theme diff --git a/.highlight/themes/base16.theme b/.highlight/themes/base16.theme new file mode 100644 index 0000000..dbb2eb1 --- /dev/null +++ b/.highlight/themes/base16.theme @@ -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%% diff --git a/.zshrc b/.zshrc index 82506f7..b0ffb0a 100644 --- a/.zshrc +++ b/.zshrc @@ -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