dot

packages and services management
Log | Files | Refs | README

commit 7842e12d8de2167eac851c279518f95e9c6358b7
parent 9bbadeb40e8a13eb1d32fd931e7624947612319a
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 29 Nov 2017 17:48:17 +0100

fix io man page selection

Diffstat:
Mbin/io | 8++++----
Mdot/bashrc | 1+
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/bin/io b/bin/io @@ -15,8 +15,7 @@ case $1 in iomenu -p find)" ;; (m|mblaze) - cd "$MAIL/.." - mdirs "$PWD" | sort | while IFS='' read -r dir + mdirs "$MAIL/.." | sort | while IFS='' read -r dir do printf '%s\t%s\n' "$(mlist -s "$dir" | wc -l)" "${dir#$PWD/}" done | iomenu | cut -f 2 | mlist | mthread | msort -r -d | mseq -S | mscan -f '%6n %u %D %20f %t%2i%120S' | iomenu -p mail | @@ -37,9 +36,10 @@ case $1 in ;; (m|man) spc=' ' - exec man "$(man -k ' ' | + exec man $(man -k ' ' | sed -r -e "s/ - /$spc - /" -e 's/(.{25}[^ ]* ) * - /\1- /' | - iomenu -p man | sed 's/[^_a-zA-Z0-9].*//')" + iomenu -p man | + sed -r 's/([_a-zA-Z0-9]*).*\(([0-9p]+).*\)/\2 \1/') ;; (a|abduco|'') id=$(abduco | sed '1 s/^/#/' | tr ! / | iomenu -# -p abduco | diff --git a/dot/bashrc b/dot/bashrc @@ -11,5 +11,6 @@ alias c='cd "$(find . -maxdepth 4 -name .git -prune -o -type d | iomenu)"' alias cl='printf "\033[H\033[2J"' alias f='f=$(io find)' alias l='ls -Alp' +alias p='p=$(io ps)' alias o='xdg-open' alias s='git status -s --branch'