A personal collection of simple scripts that integrate everything with fzf.
They are mostly opinionated, unpolished, unextendable, inconsistent, and unconfigurable — just the way I like them. Only tested on my MacBook. Keep that in mind.
Hope you find some ideas useful.
Each script is self-contained and can be run directly and individually.
You can add the repository to your $PATH
,
[[ $PATH =~ everything.fzf ]] || PATH="/path/to/everything.fzf:$PATH"
or copy/symlink only the ones you like.
The scripts are written in Bash and Ruby, so both are required.
Some scripts also depend on the following programs:
- bat
- chrome-cli
- figlet
- gh
- mise
- ripgrep
brew install bash ruby bat chrome-cli figlet gh mise ripgrep
- Select macOS applications to open
chrome.fzf [t|h|b]
t
for open tabs (default; requireschrome-cli
)- You can press
CTRL-W
to close a tab
- You can press
h
for historyb
for bookmarks
- Type in text, select a font, preview the result, and press enter to copy it to the clipboard.
- Press enter on a gist to edit it in your editor
- To access gists on GitHub Enterprise, set the
GH_HOST
environment variablealias giste.fzf='GH_HOST=git.evil.com gist.fzf'
Usage: jira.fzf URL [JQL|PROJECT...]
-u, --user={USER:PASSWORD,PAT} User name and password (user:password) or PAT
-q, --query=QUERY Initial query
--lines=NUM_LINES Number of lines of description to show
--limit=MAX_ITEMS Maximum number of items to fetch
jira.fzf --limit 1000 --lines 10 https://issues.apache.org/jira \
'creator = junegunn order by updated desc'
usage: kube.fzf [p|d|j|cj|sc|sn]
p list all pods
d list all deployments
j list all jobs
cj list all cronjobs
sc switch to a different context
sn switch to a different namespace
- You probably don't need this unless you really need to browse your clipboard history with more screen estate.
- You can press
CTRL-E
to edit the selected item in your editor
- First select a tool, then select a version of it to use it
- Check out a GitHub pull request
- Select known hosts to open SSH connections to them in a tiled tmux split panes
- Browse recently viewed and modified pages in Confluence wiki
Usage: wiki.fzf URL -u, --user={USER:PASSWORD,PAT} User name and password (user:password) or PAT
- https://github.com/junegunn/fzf-git.sh
- https://github.com/junegunn/tmux-fzf-url
- https://github.com/junegunn/tmux-fzf-maccy
MIT