A collection of functions to enhance commandline with FZF
First, clone this repository.
git clone https://github.com/liuyinz/fzf-collection.gitThen add the following line to your ~/.zshrc .
source /path/to/fzf-collection.plugin.zshClone this repository to custom plugin directory
git clone https://github.com/liuyinz/fzf-collection.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-collectionTo start using it, add the fzf-collection plugin to your plugins array in ~/.zshrc:
- plugins=(...)
+ plugins=(... fzf-collection)brewf:outdatedsearchmanagetap
# dependency
brew install grep coreutilspipf:outdatedsearchmanage
npmf:manageoutdatedsearchregistry
pnpmf:manageoutdatedsearchregistry
proxyf:switchadd
# dependency
brew install git-extras coreutils ghgitf:submodulecommitignoreiostash
brew install gh jqghf: manage user/repos
fp: find$PATHffp: find$FPATH
# dependency
brew install sqlite3 coreutils diffutils jq python-yqbhf: history searchbbf: bookmark search
Supports:
| Chrome | Edge | Firefox | Safari | |
|---|---|---|---|---|
bhf |
Yes | Yes | Yes | Yes |
bbf |
Yes | Yes | Yes | No |
Setting FZF_COLLECTION_MODULES to load modules. By default, all modules are loaded.
FZF_COLLECTION_MODULES=(
browser
brew
pip
proxy
git
gh
other
)Setting FZF_COLLECTION_OPTS to customize fzf options.
# set options if needed, default value is as below :
FZF_COLLECTION_OPTS="
--header-first
--ansi
--reverse
--cycle
--no-multi
--sort
--exact
--info=inline
--bind=change:first,btab:up+toggle,ctrl-n:down,ctrl-p:up
--bind=ctrl-u:cancel,ctrl-l:jump,ctrl-t:toggle-all,ctrl-v:clear-selection"Setting BROWSERF_DEFAULT to open URL, use default browser if not set.
# choose from "chorme" "edgemac" "firefox" "safari"
BROWSERF_DEFAULT="chrome"Setting PROXYF_URLS to provide URLs for switch:
# usually for https and socks, comma seperated.
PROXYF_URLS="http://127.0.0.1:1234,socks://127.0.0.1:1234"- remove sed,tr,awk dependencies with perl
- fzf: proxy gem
- add proxy restore for initial proxy status
- sourcef: switch source for manager