The objective is to consolidate a number of bash commands into ready and quick to use functions to handle a customized environment.
- Download the script into your root
$ git clone https://github.com/Divinityfound/mp-bash-nav.git > ~/.mp
- Add it as a source in your startup script (Eg: ~/.bash_profile, ~/.bashrc)
OPTION 1:
$ echo "source ~/.mp/mp.sh" >> ~/.bash_profile
OPTION 2 (My environment):
$ echo "source ~/.mp/mp.sh" >> ~/.bashrc
Debugging:
Sometimes, the above command will end up outputting into your bootup the entire line. Simply go into your file and update the line to be inside of .bashrc or .bash_profile to be:
source ~/.mp/mp.sh
Once you start the program, to escape it, simply press CTRL + C. It loops back in on itself due to the need to run a number of processes in sequence.
Usage:
$ mp [ -h | help ] # Displays Help Command
$ mp [ QuickDir | quickdir ] [ go | add | remove ] # Goes to/adds/removes directory
$ mp [ Git | git ] [ push | pull | add ] # Pushes/Pulls/Adds git Repository
$ mp [ Template | template ] cp # Copies a template file to current directory
$ mp [ Logs | logs ] [ clear | add | remove ] # Manages known memory hogs
$ mp [ LaravelChmod | laravelchmod ] # Sets the proper permissions for Laravel
Feel free to email me at jacob@mathisonprojects.com
Please give me a follow or subscribe in the following:
Github | Youtube | Twitch | Personal Site | ||
---|---|---|---|---|---|
MathisonProject | Divinityfound | Jacob Mathison | MathisonProjects | Jacob Mathison | Mathison Projects |