dot

packages and services management
Log | Files | Refs | README

commit a4810b9db33421bbff6cb3c91c8f4daf359df21f
parent 1e8308a42c4e91b2747b33fd567e81d0a04c47b7
Author: josuah <mail@josuah.net>
Date:   Tue, 22 Nov 2016 11:27:05 +0100

Manuals for bin scripts

Diffstat:
M.cache/buffer/history | 1+
M.local/bin/buffer | 6+++---
R.local/bin/www.1 -> .local/share/man/man1/www.1 | 0
3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.cache/buffer/history b/.cache/buffer/history @@ -0,0 +1 @@ +addpart b diff --git a/.local/bin/buffer b/.local/bin/buffer @@ -6,7 +6,7 @@ CACHE="${XDG_CACHE_HOME:-$HOME/.cache}" usage() { - printf '%s\n' "${0##*/}: [-w] [cmd [args...]] + printf '%s\n' "${0##*/} [-w] [cmd [args...]] -w update command description using whatis cmd do not prompt for a command and run CMD right away @@ -44,8 +44,8 @@ update_descriptions_cache() whatis="$(whatis -s 1 "$command" 2> /dev/null | tail -n 1)" if [ "$whatis" ] then - printf '%-20s # %-20s %s\n' \ - "$command" "${whatis%% - *}" "${whatis#* - }" + printf '%-20s # %s\n' \ + "$command" "${whatis#* - }" else printf '%s\n' "$command" fi diff --git a/.local/bin/www.1 b/.local/share/man/man1/www.1