All Projects → changyuheng → Fz

changyuheng / Fz

Licence: mpl-2.0
Cli shell plugin, the missing fuzzy tab completion feature of z jump around command.

Programming Languages

shell
77523 projects
bash
514 projects

Projects that are alternatives of or similar to Fz

Zsh Autocomplete
🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
Stars: ✭ 641 (+78.55%)
Mutual labels:  zsh, zsh-plugin, completion, autocompletion
Z.lua
⚡ A new cd command that helps you navigate faster by learning your habits.
Stars: ✭ 2,164 (+502.79%)
Mutual labels:  zsh, zsh-plugin, fuzzy, cd
Symfony Console Autocomplete
Shell autocompletion for Symfony Console based scripts
Stars: ✭ 465 (+29.53%)
Mutual labels:  zsh, completion, autocompletion
Fzf Tab
Replace zsh's default completion selection menu with fzf!
Stars: ✭ 761 (+111.98%)
Mutual labels:  zsh, zsh-plugin, completion
Zsh Better Npm Completion
Better completion for npm
Stars: ✭ 346 (-3.62%)
Mutual labels:  zsh, zsh-plugin, completion
Kube Aliases
Kubernetes Aliases and Bash Functions
Stars: ✭ 40 (-88.86%)
Mutual labels:  zsh, oh-my-zsh, zsh-plugin
Yarn Completion
Bash completion for Yarn
Stars: ✭ 210 (-41.5%)
Mutual labels:  bash-completion, completion, autocompletion
Zsh Nvm
Zsh plugin for installing, updating and loading nvm
Stars: ✭ 1,670 (+365.18%)
Mutual labels:  zsh, oh-my-zsh, zsh-plugin
Zsh Vi Mode
💻 A better and friendly vi(vim) mode plugin for ZSH.
Stars: ✭ 181 (-49.58%)
Mutual labels:  zsh, oh-my-zsh, zsh-plugin
Enhancd
🚀 A next-generation cd command with your interactive filter
Stars: ✭ 2,049 (+470.75%)
Mutual labels:  zsh, fuzzy-search, cd
History Sync
An oh-my-zsh plugin for GPG encrypted internet synchronised Zsh history, with Git.
Stars: ✭ 135 (-62.4%)
Mutual labels:  zsh, oh-my-zsh, zsh-plugin
zsh-ssh-agent
Ssh-agent management for zsh
Stars: ✭ 19 (-94.71%)
Mutual labels:  zsh, oh-my-zsh, zsh-plugin
smartcd
Expedite your navigation of Linux filesystem.
Stars: ✭ 35 (-90.25%)
Mutual labels:  cd, fuzzy-search, zsh-plugin
Kubectl Fzf
A fast kubectl autocompletion with fzf
Stars: ✭ 315 (-12.26%)
Mutual labels:  fuzzy-search, completion, autocompletion
History Search Multi Word
Multi-word, syntax highlighted history searching for Zsh
Stars: ✭ 314 (-12.53%)
Mutual labels:  zsh, zsh-plugin
aterminal
🎉 An oh-my-zsh plugin for show platform versions
Stars: ✭ 31 (-91.36%)
Mutual labels:  zsh, zsh-plugin
dotfiles
My dotfiles for oh-my-zsh, vim and tmux 📟
Stars: ✭ 23 (-93.59%)
Mutual labels:  zsh, oh-my-zsh
zhooks
Display Zsh hook functions and arrays
Stars: ✭ 36 (-89.97%)
Mutual labels:  zsh, zsh-plugin
ansible-ohmyzsh
simple ansible role to install oh-my-zsh
Stars: ✭ 38 (-89.42%)
Mutual labels:  zsh, oh-my-zsh
goto
Goto - The Good Way to Program
Stars: ✭ 14 (-96.1%)
Mutual labels:  zsh, cd

fz

A shell plugin that seamlessly adds fuzzy search to tab completion of z, lets you easy to jump around among your historical directories. Not any additional key binding is needed. Currently supports Bash and zsh.

Demo

gif-demo

Installation

By simply sourcing corresponding script file for your shell, you're all set. However, this plugin is sitting on top of z and fzf, so you must have them installed as well.

N.B. fz needs to be sourced after z.

macOS

Bash

  1. Install fzf via Homebrew.

    brew install fzf
    
  2. Download z and fz.

    mkdir ~/.bash_completion.d
    curl "https://raw.githubusercontent.com/rupa/z/master/{z.sh}" \
        -o ~/.bash_completion.d/"#1"
    curl "https://raw.githubusercontent.com/changyuheng/fz/master/{fz.sh}" \
        -o ~/.bash_completion.d/z"#1"
    
  3. Add the following content to ~/.bashrc:

    if [ -d ~/.bash_completion.d ]; then
      for file in ~/.bash_completion.d/*; do
        . $file
      done
    fi
    

zsh

  1. Install fzf via Homebrew.

    brew install fzf
    
  2. Install z and fz via zplug. Add the following content to ~/.zshrc:

    zplug "changyuheng/fz", defer:1
    zplug "rupa/z", use:z.sh
    

Ubuntu

Bash

  1. Install fzf.

    git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
    ~/.fzf/install
    
  2. Download z and fz.

    mkdir ~/.bash_completion.d
    curl "https://raw.githubusercontent.com/rupa/z/master/{z.sh}" \
        -o ~/.bash_completion.d/"#1"
    curl "https://raw.githubusercontent.com/changyuheng/fz/master/{fz.sh}" \
        -o ~/.bash_completion.d/z"#1"
    
  3. Add the following content to ~/.bashrc:

    if [ -d ~/.bash_completion.d ]; then
      for file in ~/.bash_completion.d/*; do
        . $file
      done
    fi
    

zsh

  1. Install fzf.

    git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
    ~/.fzf/install
    
  2. Install z and fz via zplug. Add the following content to ~/.zshrc:

    zplug "changyuheng/fz", defer:1
    zplug "rupa/z", use:z.sh
    

Usage

z [dir name slug]<TAB>
zz [dir name slug]<TAB>
  • The function of fz is pretty much like what it is of z. zz limits the search base starting from current working directory. Check z’s doc for more information.
  • tab/shift-tab, ctrl-n/ctrl-p, ctrl-j/ctrl-k, for next and previous item. Enter for selection. Check fzf’s doc for the search syntaxes.
  • FZ_CMD=z specifies command name of fz. Default is z.
  • FZ_SUBDIR_CMD=zz specifies command name for subdirectory only z. Default is zz.
  • FZ_SUBDIR_TRAVERSAL=0 disables subdirectory completion. Default is enabled.
  • FZ_CASE_INSENSITIVE=0 disables case-insensitive subdirectory completion. Default is enabled.
  • FZ_ABBREVIATE_HOME=0 disables abbreviating ~. Default is enabled.
  • FZ_HISTORY_CD_CMD=_zlua works with z.lua.

See Also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].