Add 'randoman' and 'randoaw' scripts
This commit is contained in:
parent
3bc12b8e20
commit
a9242aa69a
6
.local/bin/scripts/randoman
Executable file
6
.local/bin/scripts/randoman
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Open random man page.
|
||||
|
||||
man "$(a="$(shuf -i 1-"$(man -k . | wc -l)" -r -n 1)" && man -k . | \
|
||||
awk -v v="$a" 'NR==v {print $1}')"
|
5
.local/bin/scripts/randomaw
Executable file
5
.local/bin/scripts/randomaw
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Open random Arch Wiki page in w3m.
|
||||
|
||||
w3m "https://wiki.archlinux.org/index.php/Special:Random"
|
Loading…
x
Reference in New Issue
Block a user