From a0318c8b1dcabc7e76926c27312ce3845d900137 Mon Sep 17 00:00:00 2001 From: xero Date: Sun, 14 Jun 2015 05:50:18 -0400 Subject: simplify shell markdown man viewer command --- zsh/.zsh/aliases.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'zsh') 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 - } -- cgit v1.2.1