GithubHelp home page GithubHelp logo

zsh-peco-cd's Introduction

zsh-peco-cd

Search directories with peco when pressing ctrl+f

NOTE: By default the plugin will only query for directories under the curent users home directory. ie for non root users this would be $HOME and for root /

Based on zsh-peco-history.

screenshot

usage

  1. press ctrl + f when in zsh shell
  2. start typing to filter out your directory
  3. press enter/return to pick a directory to change to

Installation

Manual

  1. clone this repo to your machine. This guide uses ~/.zsh/zsh-peco-cd

    git clone https://github.com/kareem-abdul/zsh-peco-cd.git ~/.zsh/zsh-peco-cd
  2. Add the following to your .zshrc:

    source ~/.zsh/zsh-peco-cd/zsh-peco-cd.zsh
  3. Start a new terminal session

  1. Clone this repo into $ZSH_CUSTOM/plugins (by default this is ~/.oh-my-zsh/custom/plugins)
    git clone https://github.com/kareem-abdul/zsh-peco-cd.git ${ZSH_CUSTOM:~/.oh-my-zsh/custom}/plugins/zsh-peco-cd
  2. Add the plugin to the list of plugins in your .zshrc for Oh My Zsh to load:
    plugin=(zsh-peco-cd)
  3. Start a new terminal session

Configuration Options

ZSH_PECO_CD_IGNORE_PATHS

These are the directories in regex which this plugin ignores. This by default is set to node_modules|\.git|\.cache|\.config, ie any directory which has the above names will be ignored and will not be listed in the peco menu

ZSH_PECO_CD_ROOT

By default the plugin will only query for directories under the curent users home directory. ie for non root users this would be $HOME and for root /

You can change this behaviour by specifying a directory in the ZSH_PECO_CD_ROOT ie ZSH_PECO_CD_ROOT="$HOME/workspace" will only search the directories and subdirecotries under $HOME/workspace

zsh-peco-cd's People

Contributors

kareem-abdul avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.