Code Monkey home page Code Monkey logo

prj's Introduction

prj

Simple terminal project manager to make your life a little bit easier

Installation

git clone https://github.com/SaraFarron/prj.git
chmod +x ./prj/prj.sh

Add alias and source to your .bashrc:

PRJ_PATH="path/to/prj"  # Use $HOME instead of '~' here
alias prj="$PRJ_PATH/prj.sh"
source path/to/prj/prj-completion.sh
export PRJ_PATH="$PRJ_PATH"

Usage

prj add <project name>           Add project.
prj add <git link>               Add project from git host.
prj list                         List all projects.
prj remove <project name>        Remove project(s).
prj run <project name>           Start project.
prj init <project name> <config> Init project.
prj                              Display this information.
  • Add project: If provided with name creates folder in PROJECTS_FOLDER with that name and adds project config If provided with link clones repo in PROJECTS_FOLDER and adds project config
  • Init project: You can initialise project like git init ; touch README.md ; touch .gitignore ...

Possible init options are in configs/, of course, you can add and edit them to your taste

You can also init multilple scripts in one go: prj init project-name config1 config2 config3

You can define what editor to use and your default projects folder in prj.sh at the top of the file:

PROJECTS_FOLDER="$HOME/Projects/"  # your projects folder
EDITOR_COMMAND="code ."  # edit to run in your favourite editor

Why this project?

If you cd to your project every time after opening terminal - then this might save you some time. With prj you can cd, git pull, activate virtual env, etc. with just one simple command.

It is very simple

prj is just a one simple bash script, what it does is basically:

cd here
run this-thing.sh

so you can easily understand whats going on inside

Add your own configs

I will most likely add scripts in configs/ depending on my own needs, if you need something for yourself just copy, rename and edit what you want it to execute - it is that simple.

Want flexibility?

All your project scripts are located in projects/, these scripts execute when you run project using prj run <project name>, therefore you can edit them individually.

Credits

Thanks to EivindArvesen's prm - some ideas were inspired by his project

prj's People

Contributors

sarafarron avatar

Stargazers

Nick Slusarczyk avatar Anna Cruz avatar

Watchers

 avatar

prj's Issues

Create goto option

An option in case you want to cd to directory of your project without running code editor

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.