From 58384dce1da1f8f77b3a3ae4d1546a2773b63fe2 Mon Sep 17 00:00:00 2001 From: cbreton Date: Thu, 9 Jan 2020 10:55:24 +0100 Subject: Add cheat commands and script for better view use clima bin in ~/bin. More info here: https://github.com/Canop/clima --- dotfiles/scripts/cheatv | 5 +++++ dotfiles/zsh/01-aliases.zsh | 3 +++ 2 files changed, 8 insertions(+) create mode 100755 dotfiles/scripts/cheatv (limited to 'dotfiles') diff --git a/dotfiles/scripts/cheatv b/dotfiles/scripts/cheatv new file mode 100755 index 0000000..b052dfe --- /dev/null +++ b/dotfiles/scripts/cheatv @@ -0,0 +1,5 @@ +#!/bin/bash + +cheat_path=$(cheat -l | grep $1 | awk '{print $2}') + +~/bin/clima -p $cheat_path diff --git a/dotfiles/zsh/01-aliases.zsh b/dotfiles/zsh/01-aliases.zsh index 4843f94..3fa422e 100755 --- a/dotfiles/zsh/01-aliases.zsh +++ b/dotfiles/zsh/01-aliases.zsh @@ -194,6 +194,9 @@ alias an2l="~/.scripts/AN2Linux.sh" alias an2lpro="an2l ~/.ssh/id_rsa_mail 212.47.251.250 tun0" alias an2lperso="an2l ~/.ssh/id_rsa_mail 212.47.251.250 tun0" alias has="HAS_ALLOW_UNSAFE=y has" +alias cheatl="cheat -l" +alias cheatv="~/.scripts/cheatv" +alias cheate="cheat -e" alias bc="bc -l" alias calc="bc -l" -- cgit v1.2.1