diff options
author | xero <x@xero.nu> | 2015-06-14 05:50:18 -0400 |
---|---|---|
committer | xero <x@xero.nu> | 2015-06-14 05:50:18 -0400 |
commit | a0318c8b1dcabc7e76926c27312ce3845d900137 (patch) | |
tree | 16561e571bdd7e378059d22f12c566d1425c8955 | |
parent | 7eb2501d60f9a642c7c7fc3d68f5a42d50ea2ecd (diff) | |
download | dotfiles_ascii-a0318c8b1dcabc7e76926c27312ce3845d900137.tar.xz dotfiles_ascii-a0318c8b1dcabc7e76926c27312ce3845d900137.zip |
simplify shell markdown man viewer command
Diffstat (limited to '')
-rwxr-xr-x | zsh/.zsh/aliases.zsh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh index e154b66..16a72df 100755 --- a/zsh/.zsh/aliases.zsh +++ b/zsh/.zsh/aliases.zsh @@ -47,6 +47,8 @@ alias clbin="curl -F 'clbin=<-' https://clbin.com" alias toiletlist='for i in ${TOILET_FONT_PATH:=/usr/share/figlet}/*.{t,f}lf; do j=${i##*/}; echo ""; echo "╓───── "$j; echo "╙────────────────────────────────────── ─ ─ "; echo ""; toilet -d "${i%/*}" -f "$j" "${j%.*}"; done' alias ascii="toilet -t -f 3d" alias future="toilet -t -f future" +alias rusto="toilet -t -f rusto" +alias rustofat="toilet -t -f rustofat" alias pacman="sudo pacman" alias systemctl="sudo systemctl" alias apachereload='sudo systemctl restart httpd.service' @@ -63,6 +65,6 @@ pless() { pygmentize -f terminal256 -O style=monokai -g $1 | less -r } # read markdown files like manpages -mdman() { - grep -v "\-\-\-\-\-" "$*" | pandoc -s -f markdown -t man | groff -T utf8 -man | less +md() { + pandoc -s -f markdown -t man "$*" | man -l - } |