A barber shave another.

main
parent ebc657eac6
commit f5cfa0eee1
  1. 15
      bin/alias.sh
  2. 6
      bin/pbin
  3. 12
      bin/tmux-wm
  4. 26
      man/alias.sh.1
  5. 1
      man/dns.1
  6. 1
      man/dsg.1
  7. 1
      man/ipcheck.1
  8. 1
      man/linx.1
  9. 1
      man/list-fonts.1
  10. 1
      man/minpb.1
  11. 11
      man/pbin.1
  12. 17
      man/posix-sh-tools.7
  13. 11
      man/rman.1
  14. 1
      man/tb.1
  15. 53
      man/tmux-wm.1
  16. 35
      man/weather.1

@ -1,15 +0,0 @@
#!/bin/sh
# shell aliases manager
# only for testing purposes.
# vim: set ft=sh
case $1 in
add)
printf "alias $2=\"$3\"" >> ${aliasfile}
;;
del)
sed -i "/alias $2/d" ${aliasfile}
;;
*)
printf "%s [ add | del ] [alias] [command (only in add)] \n" "${0##/*}"
;;
esac

@ -1,6 +1,9 @@
#!/bin/sh
set -e
fn_haavard() {
curl --data-binary /dev/stdin https://p.haavard.me
}
fn_ix() {
curl -X POST -F 'f:1=<-' http://ix.io
}
@ -11,6 +14,9 @@ fn_sprunge() {
curl -X POST -F 'sprunge=<-' http://sprunge.us
}
case $1 in
-h)
fn_haavard "$@"
;;
-i)
fn_ix "$@"
;;

@ -3,7 +3,7 @@
set -e
fn_attach() {
if [ "$2" = "" ];then
if test -z "$2"; then
tmux attach
else
tmux attach -t "$@"
@ -16,7 +16,7 @@ fn_destroy() {
tmux kill-session -t "$@"
}
fn_detach() {
if [ "$2" = "" ];then
if test -z "$2"; then
tmux detach
else
tmux detach -t "$@"
@ -29,10 +29,7 @@ fn_rename() {
tmux rename -t "$@"
}
fn_usage() {
printf "%s: [ -a | -b | -d | -k | -l | -w ] [session / window] \n"
}
fn_win() {
tmux new-window -n "$@"
printf "%s: [ -a | -b | -d | -k | -l ] [session] \n" "$(basename "$0")"
}
case $1 in
-a)
@ -56,9 +53,6 @@ case $1 in
-r)
fn_rename "$2" "$3"
;;
-w)
fn_win "$2" "$3"
;;
*)
fn_usage
;;

@ -1,26 +0,0 @@
.Dd May 1, 2022
.Dt ALIAS.SH 1
.Os
.Sh NAME
.Nm alias.sh
.Nd shell aliases manager
.Sh SYNOPSIS
.Nm alias.sh
.Op add | del
.Ar alias
.Ar command
.Sh USAGE
.Bl -tag -width 11n -compact
.It add
Add a shell alias
.It del
Remove a shell alias
.EL
.Sh ENVIRONMENT
The variable ${aliasfile} isn't defined by default. You can use
.Nm export
.Ar aliasfile="<location of the shell aliases file>"
on your shell.
.Sh AUTHORS
.An Aoi Koizumi
.Mt novaburst@tilde.team

@ -1,3 +1,4 @@
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd April 30, 2022
.Dt DNS 1
.Os

@ -1,3 +1,4 @@
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd May 1, 2022
.Dt DSG 1
.Os

@ -1,3 +1,4 @@
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd May 1, 2022
.Dt IPCHECK 1
.Os

@ -1,3 +1,4 @@
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd May 1, 2022
.Dt LINX 1
.Os

@ -1,3 +1,4 @@
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd February 11, 2022
.Dt LIST-FONTS 1
.Os

@ -1,3 +1,4 @@
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd April 29, 2022
.Dt minpb 1
.Os

@ -1,26 +1,29 @@
.Dd May 1, 2022
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd May 3, 2022
.Dt pbin 1
.Os
.Sh NAME
.Nm pbin
.Nd Command-line pastebin client for bpa.st, ix.io and sprunge.us
.Nd Command-line pastebin client for bpa.st, ix.io, p.haavard.me and sprunge.us
.Sh SYNOPSIS
printf
.Ar "some text"
.Ar |
.Nm pbin
.Op -i | -p | -s
.Op -h | -i | -p | -s
.Pp
cat
.Ar file
.Ar |
.Nm pbin
.Op -i | -p | -s
.Op -h | -i | -p | -s
.Sh DESCRIPTION
This script works through a pipe, sending any text or the contents of a file from standard input to the remote endpoint using
.Xr curl 1
.Sh OPTIONS
.Bl -tag -width 11n -compact
.It -h
Use p.haavard.me
.It -i
Use ix.io
.It -p

@ -1,16 +1,15 @@
.Dd April 19, 2022
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd May 3, 2022
.Dt POSIX-SH-TOOLS 7
.Os
.Sh NAME
.Nm posix-sh-tools
.Nd collection of shell scripts for doing stuff
.Nd Collection of shell scripts leveraging functionality of existing programs
.Sh DESCRIPTION
.Nm
contains the following scripts.
.Pp
.Bl -tag -width 11n -compact
.It Xr alias.sh 1
Shell aliases manager
.It Xr dns 1
Add/remove DNS nameservers from
.Xr resolv.conf 5
@ -27,7 +26,7 @@ relatively simpler version of tomasino's
.Xr pb 1
utility
.It Xr pbin 1
Command-line pastebin client for pinnwand
Command-line pastebin client
.It Xr rman 1
Remote man page viewer
.It Xr tb 1
@ -39,12 +38,6 @@ client for wttr.in
.El
.Sh DEPENDENCIES
.Bl -tag -width 11n -compact
.It alias.sh
.Xr printf 1
.Xr sed 1
.It dns
.Xr echo 1
.Xr sed 1
.It dsg
none
.It ipcheck
@ -95,5 +88,7 @@ a rudimentary user services manager (proof of concept)
.It Xr wl-screenshot 1
a better screenshot helper for wayland
.El
.Sh SOURCE CODE
.Lk https://framagit.org/akoizumi/posix-sh-tools
.Sh AUTHORS
.An Aoi Koizumi Aq Mt novaburst@tilde.team

@ -1,14 +1,15 @@
.Dd January 4, 2022
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd May 3, 2022
.Dt rman 1
.Os
.Sh Name
.Sh NAME
.Nm rman
.Nd Remote man page viewer
.Sh Synopsis
.Sh SYNOPSIS
.Nm rman
.Ar url
.Sh Description
.Sh DESCRIPTION
This simple shell script uses curl and mandoc as backend
.Sh Authors
.Sh AUTHORS
.Nm Aoi Koizumi
.Mt novaburst@tilde.team

@ -1,3 +1,4 @@
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd 2021-12-09
.Dt tb 1
.Os

@ -1,44 +1,29 @@
.Dd 2021-10-11
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd May 4, 2022
.Dt tmux-wm 1
.Os
.Sh Name
.Sh NAME
.Nm tmux-wm
.Nd tmux workspace manager
.Sh Synopsis
.Sh SYNOPSIS
.Nm tmux-wm
.Op -abdklrw
.Op session/window
.Sh Description
.Op -abdklr
.Ar session
.Sh DESCRIPTION
This is a wrapper around
.Xr tmux 1
allowing to leverage some features of said program.
.Sh Usage
.Ss Attach to existing session
.Nm tmux-wm
.Op -a
.Op session-id
.Ss Detach from existing session
.Nm tmux-wm
.Op -d
.Op session-id
.Ss Destroy a session
.Nm tmux-wm
.Op -k
.Op session-id
.Ss List running sessions
.Nm tmux-wm
.Op -l
.Ss Rename a session
.Op -r
.Op old name
.Op new name
.Ss Create a window inside an existing session
.Nm tmux-wm
.Op -w
.Op id
.Op cmd
.Sh Bugs / Limitations
The -w option only works for a single tmux session.
.Sh Authors
.Sh USAGE
.Bl -tag -width 11n -compact
.It -a, -d
(At/de)tach to/from existing session
.It -k
Destroy a session
.It -l
List active sessions
.It -r
Rename a session
.El
.Sh AUTHORS
.An Aoi Koizumi
.Mt novaburst@tilde.team

@ -1,32 +1,31 @@
.Dd January 2, 2022
.\" Complete documentation for this program is **not** available as a GNU info page
.Dd May 3, 2022
.Dt weather 1
.Os
.Sh Name
.Sh NAME
.Nm weather
.Nd client for wttr.in
.Sh Synopsis
.Sh SYNOPSIS
.Nm weather
.Cm [ -m | -p | -v2 | -v3 ]
.Ar location
.Sh Description
.Sh DESCRIPTION
This is a simple client for wttr.in, originally based on an alias found on
.Nm ~lucidiot's tilde site
at
.Lk https://tilde.town/~lucidiot
but evolved to support more options
.Sh Usage
.Ss Show moon phases
.Nm weather
.Cm -m
.Ss Show plain text output
.Nm weather
.Cm -p
.Ss Show data-rich output
.Nm weather
.Cm -v2
.Ss Show map-view (experimental)
.Nm weather
.Cm -v3
.Sh Authors
.SH USAGE
.Bl -tag -width 11n -compact
.It -m
Show moon phases
.It -p
Show plain text output
.It -v2
Show data-rich output
.It -v3
Show map-view output on supported terminals
.El
.Sh AUTHORS
.An Aoi Koizumi
.Mt novaburst@tilde.team

Loading…
Cancel
Save