diff options
author | cbreton <c.breton@fullsave.com> | 2020-01-09 10:55:24 +0100 |
---|---|---|
committer | cbreton <c.breton@fullsave.com> | 2020-01-09 10:55:24 +0100 |
commit | 58384dce1da1f8f77b3a3ae4d1546a2773b63fe2 (patch) | |
tree | 17eed1920204a5a7c115da5c5c1057e9c8b8f9ef /dotfiles | |
parent | f86d315c79f1ea2cfec263f412931a6a33db5179 (diff) | |
download | dotfiles_dotdrop-58384dce1da1f8f77b3a3ae4d1546a2773b63fe2.tar.xz dotfiles_dotdrop-58384dce1da1f8f77b3a3ae4d1546a2773b63fe2.zip |
Add cheat commands and script for better view
use clima bin in ~/bin. More info here:
https://github.com/Canop/clima
Diffstat (limited to '')
-rwxr-xr-x | dotfiles/scripts/cheatv | 5 | ||||
-rwxr-xr-x | dotfiles/zsh/01-aliases.zsh | 3 |
2 files changed, 8 insertions, 0 deletions
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" |