GithubHelp home page GithubHelp logo

plugin-pj's Introduction

pj

A port of Jan De Poorter's pj for the fish shell. pj was originally popularized by the oh-my-zsh plugin with the same name, pj.

pj allows you to easily jump between your favourite directories in a predictable manner. You tell pj where to look for your projects, and it will allow you to jump to them easily with tab completion. It even provides a convenient ability to open an editor in that directory from anywhere!

MIT License Fish Shell Version Oh My Fish Framework


Install

$ omf install pj

Configuration

In order to tell pj where to look for your projects, you need to set an environment variable called PROJECT_PATHS. It is a list of directories which contain your projects.

$ set -gx PROJECT_PATHS ~/workspace ~/src

Usage

To jump to a project, simply run pj with the name of the directory you would like to jump to.

$ pj foo-project

You can also open it in your favourite editor with the pj open command. This will open the project with the $EDITOR configured on your system.

$ pj open foo-project

Protip: You can set an abbrebiation in your shell for the above, like pjo.

$ abbr -a pjo pj open
$ pjo<space>
# Becomes
$ pj open

License

MIT © Espen Henriksen et al

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.