This commit is contained in:
Martin Bauer 2022-06-14 23:38:24 +02:00
parent 34c0074218
commit 331d3089ca
2 changed files with 62 additions and 0 deletions

View File

@ -164,6 +164,37 @@ cp completion/broot.fish $XDG_CONFIG_HOME/fish/completions/broot.fish
${MB_ENV_BASE}/bin/broot --print-shell-function fish > $XDG_CONFIG_HOME/fish/functions/br.fish
cp -r ${CONFIG_IN}/broot $XDG_CONFIG_HOME
# -------------------------------------------- ripgrep ------------------------------------------------------------
printf "${Blue}--> ripgrep${Color_Off}\n"
cd ${INSTALL_TMP_DIR}
mkdir ripgrep && cd ripgrep
curl -sL https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz | tar xz
cd ripgrep-*
cp rg ${MB_ENV_BASE}/bin
cp complete/rg.fish $XDG_CONFIG_HOME/fish/completions/fd.fish
# -------------------------------------------- lsd ------------------------------------------------------------
printf "${Blue}--> lsd${Color_Off}\n"
cd ${INSTALL_TMP_DIR}
mkdir lsd && cd lsd
curl -sL https://github.com/Peltoche/lsd/releases/download/0.22.0/lsd-0.22.0-x86_64-unknown-linux-musl.tar.gz | tar xz
cd lsd*
cp lsd ${MB_ENV_BASE}/bin
cp autocomplete/lsd.fish $XDG_CONFIG_HOME/fish/completions/fd.fish
# -------------------------------------------- cheat ------------------------------------------------------------
printf "${Blue}--> cheat${Color_Off}\n"
cd ${MB_ENV_BASE}/bin
curl -sL https://github.com/cheat/cheat/releases/download/4.2.3/cheat-linux-amd64.gz | gunzip > cheat
chmod u+x cheat
#cp -r ${CONFIG_IN}/cheat ${XDG_CONFIG_HOME}
# ------------------------------------------- configs -----------------------------------------------------------
cp ${CONFIG_IN}/activate.sh $MB_ENV_BASE # activation script

31
config_in/cheat/conf.yml Normal file
View File

@ -0,0 +1,31 @@
---
# The editor to use with 'cheat -e <sheet>'. 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: dracula
# Which 'chroma' "formatter" should be applied?
# One of: "terminal", "terminal256", "terminal16m"
formatter: terminal16m
# Through which pager should output be piped? (Unset this key for no pager.)
pager: less -FRX
# 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 <tag>' 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