Skip to content

derekstavis/plugin-prj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prj

Gotta go fast to projects.

MIT License Fish Shell Version Oh My Fish Framework


What is a project

Everyone have a personal projects directory. It can be your Documents, it can be your home directory. Sometimes you have multiple directories, like work, personal, college, etc.

Finding a project is easy when you have a few projects and a central directory, but when any of projects or directories grows a lot, it gets really difficult to find stuff you just wanted to work on.

Here comes prj, a quick project jump tool based on a global path variable: Project directories are present in $project_path.

This path variable can be enhanced the way you like with globbing tricks or even more complex setups that can be made on your init file.

So... How to?

$ omf install prj

Use $OMF_CONFIG/before.init.fish to setup your $projects_path:

$OMF_CONFIG/before.init.fish

set -g $projects_path ~/workspace

You can invoke prj to quickly jump to a best effort match:

/home/derek> prj hello
/home/derek/workspace/helloworld>

Completions are included, so you can always do a fish pager search.

When multiple matches are found, fzg is invoked to choose the project.

License

MIT © Derek Stavis et al

Releases

No releases published

Packages

No packages published

Languages