neige d'aoust

knowledge, art, and other stuff

User Tools

Site Tools


snippets

This is an old revision of the document!


Useful snippets to put in your ~/.local/bin

man

Too lazy to download man-db? Yeah just let your web browser do it for you :)

man
#!/bin/sh
if [ $# -ge 2 ]
then
        cat=".$1"
        shift
fi
if [ $# -ge 1 ]
then
        xdg-open "https://man.archlinux.org/search?q=$@$cat&go=Go"
else
        echo "man what?"
fi
snippets.1741590988.txt.gz · Last modified: 2025/03/10 03:16 by Yuki