dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit a5a8244c18f86fefc0f10896811edf2694102454
parent a2997ffeafdf8e7468a9287dbf6308cf27583d4b
Author: pyratebeard <root@pyratebeard.net>
Date:   Mon, 22 Jun 2020 13:51:13 +0100

new alias and functions

ansible-playbook alias. html to manpage function. use ssh if tmux isn't installed with tmush function. update raise to use NF field

Diffstat:
Mzsh/.zsh/aliases.zsh | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh @@ -52,6 +52,7 @@ alias song="ncmpcpp --current-song='$7%a - $8{%n} {%t} $R [{%l}] ' | cut -d '%' alias jobs="jobs -l" alias dnf="sudo dnf" alias irc="TERM=screen dtach -A /tmp/irc irssi" +alias ap="ansible-playbook" alias -s md=vim alias -s {png,jpg,jpeg}=sxiv @@ -75,8 +76,11 @@ l() { md() { pandoc -s -f markdown -t man "$*" | man -l - } +webman() { + curl "$@" | pandoc -s -f html -t man | man -l - +} tmush() { - ssh -t "$@" 'tmux attach || tmux new' + ssh -t "$@" 'tmux attach || tmux new' || ssh "$@" } screencast() { @@ -85,5 +89,5 @@ screencast() { } raise() { - $(hidden -c | awk -F\: '{print $2}' | tr -d "'") + $(hidden -c | awk -F\: '{print $NF}' | tr -d "'") }