Skip to content

Instantly share code, notes, and snippets.

@santaklouse
Created February 26, 2025 09:28
Show Gist options
  • Save santaklouse/5edef74d540256b8e7b33194429ce804 to your computer and use it in GitHub Desktop.
Save santaklouse/5edef74d540256b8e7b33194429ce804 to your computer and use it in GitHub Desktop.
quick cheatsheet in terminal (rtfm - Read The Fucking Manual)
#!/usr/bin/env bash
# get examples of using find command:
# $ rtfm find
function rtfm() {
old="$IFS"
IFS='+'
echo -n "Search manuals for: '$*'"
query="https://cheat.sh/$*"
echo " // ($query) ..."
echo "$str"
IFS=$old
curl "$query"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment