aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles')
-rwxr-xr-xdotfiles/scripts/cheatv5
-rwxr-xr-xdotfiles/zsh/01-aliases.zsh3
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"