+
Skip to content

eki3z/fzf-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fzf-collection

GitHub license

A collection of functions to enhance commandline with FZF

Contents

Install

Manual

First, clone this repository.

git clone https://github.com/liuyinz/fzf-collection.git

Then add the following line to your ~/.zshrc .

source /path/to/fzf-collection.plugin.zsh

Oh-My-Zsh

Clone this repository to custom plugin directory

git clone https://github.com/liuyinz/fzf-collection.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-collection

To start using it, add the fzf-collection plugin to your plugins array in ~/.zshrc:

- plugins=(...)
+ plugins=(... fzf-collection)

Commands

fzf-brew

  • brewf: outdated search manage tap

fzf-pip

# dependency
brew install grep coreutils
  • pipf: outdated search manage

fzf-npm

  • npmf: manage outdated search registry

fzf-pnpm

  • pnpmf: manage outdated search registry

fzf-proxy

  • proxyf: switch add

fzf-git

# dependency
brew install git-extras coreutils gh
  • gitf: submodule commit ignoreio stash

fzf-gh

brew install gh jq
  • ghf: manage user/repos

fzf-other

  • fp: find $PATH
  • ffp: find $FPATH

fzf-browser

# dependency
brew install sqlite3 coreutils diffutils jq python-yq
  • bhf: history search
  • bbf: bookmark search

Supports:

Chrome Edge Firefox Safari
bhf Yes Yes Yes Yes
bbf Yes Yes Yes No

Environment

FZF_COLLECTION_MODULES

Setting FZF_COLLECTION_MODULES to load modules. By default, all modules are loaded.

FZF_COLLECTION_MODULES=(
  browser
  brew
  pip
  proxy
  git
  gh
  other
  )

FZF_COLLECTION_OPTS

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"

BROWSERF_DEFAULT

Setting BROWSERF_DEFAULT to open URL, use default browser if not set.

# choose from "chorme" "edgemac" "firefox" "safari"
BROWSERF_DEFAULT="chrome"

PROXYF_URLS

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"

Todo

  • remove sed,tr,awk dependencies with perl
  • fzf: proxy gem
  • add proxy restore for initial proxy status
  • sourcef: switch source for manager

About

Collection of FZF command related to browser, homebrew, pip, git.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载