CLI tools
ripgrep as a replacement for grep
- GitHub project
- File searching tool
- claims to be much faster than grep
- installing
brew install ripgrep
- looks like perl compatible regular expressions are built in with the brew install
- usage
- simplest case:
rg search_term_here
- version
rg --version
- simplest case:
- documentation
man rg
rg [OPTIONS] PATTERN [PATH...]
fzf
- see fzf
Random tip and tricks
- open man page as a pdf
man -t rg | open -f -a Preview.app
- speed up repeat speed when key is held down
- see second line here:
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms) defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
- From How to increase keyboard key repeat rate on OS X? - Ask Different
curl
- see second line here:
- download html page and save to file
curl -s -o ./file.html -k [https://example.com
](https://example.com`)
View the edit history