From f86d315c79f1ea2cfec263f412931a6a33db5179 Mon Sep 17 00:00:00 2001 From: cbreton Date: Thu, 9 Jan 2020 10:42:26 +0100 Subject: Update cheat to the last version --- config.yaml | 6 ++++++ dotfiles/config/cheat/conf.yml | 39 +++++++++++++++++++++++++++++++++++++++ install.sh | 2 +- 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 dotfiles/config/cheat/conf.yml diff --git a/config.yaml b/config.yaml index 9018465..1867912 100644 --- a/config.yaml +++ b/config.yaml @@ -19,6 +19,9 @@ dotfiles: link: link src: cheat dst: ~/.cheat + d_cheat_config: + src: config/cheat + dst: ~/.config/cheat f_gitconfig: src: gitconfig dst: ~/.gitconfig @@ -90,6 +93,7 @@ profiles: - d_aria2 - d_systemd - d_cheat + - d_cheat_config - f_gitconfig - d_i3 - d_scripts @@ -118,6 +122,7 @@ profiles: - d_aria2 - d_systemd - d_cheat + - d_cheat_config - f_gitconfig - d_i3 - d_scripts @@ -146,6 +151,7 @@ profiles: - d_aria2 - d_systemd - d_cheat + - d_cheat_config - f_gitconfig - d_i3 - d_scripts diff --git a/dotfiles/config/cheat/conf.yml b/dotfiles/config/cheat/conf.yml new file mode 100644 index 0000000..f249549 --- /dev/null +++ b/dotfiles/config/cheat/conf.yml @@ -0,0 +1,39 @@ +--- +# The editor to use with 'cheat -e '. Defaults to $EDITOR or $VISUAL. +#editor: vim + +# Should 'cheat' always colorize output? +colorize: true + +# Which 'chroma' colorscheme should be applied to the output? +# Options are available here: +# https://github.com/alecthomas/chroma/tree/master/styles +style: monokai + +# Which 'chroma' "formatter" should be applied? +# One of: "terminal", "terminal256", "terminal16m" +formatter: terminal16m + +# The paths at which cheatsheets are available. Tags associated with a cheatpath +# are automatically attached to all cheatsheets residing on that path. +# +# Whenever cheatsheets share the same title (like 'tar'), the most local +# cheatsheets (those which come later in this file) take precedent over the +# less local sheets. This allows you to create your own "overides" for +# "upstream" cheatsheets. +# +# But what if you want to view the "upstream" cheatsheets instead of your own? +# Cheatsheets may be filtered via 'cheat -t ' in combination with other +# commands. So, if you want to view the 'tar' cheatsheet that is tagged as +# 'community' rather than your own, you can use: cheat tar -t community +cheatpaths: + + - name: work + path: ~/.bcheat + tags: [ work ] + readonly: false + + - name: personal + path: ~/.cheat + tags: [ personal ] + readonly: false diff --git a/install.sh b/install.sh index 31f4089..0854c6b 100755 --- a/install.sh +++ b/install.sh @@ -107,7 +107,7 @@ echo "Install alacritty..." echo "Install cheat..." -#pikaur -S --noconfirm --needed cheat-git +#pikaur -S --noconfirm --needed cheat ## gnupg -- cgit v1.2.1