| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
DEPRECATED: See https://github.com/bas080/dotbashrc
Project specific bash scripts.
Usually I find myself needing bash commands for specific projects, usually for compilation, working with git, etc. Projector allows you to define a project specific bash file.
It's also possible to download a specific version by replacing master with a valid version.
The intention is to source the shell specific version of projector.
wget -O ~/.projector.bash https://raw.githubusercontent.com/bas080/projector/master/dist/projector.bash
echo 'source ~/.projector.bash' >> ~/.bashrcwget -O ~/.projector.zsh https://raw.githubusercontent.com/bas080/projector/master/dist/projector.zsh
echo 'source ~/.projector.zsh' >> ~/.zshrc'Define a file in your project root called .local.bashrc. An example:
#!/bin/bash
alias clean='cd $PROJECTOR_HOME && rm -rf _build'
alias compile='rebar3 compile'
alias recompile='clean && compile'The $PROJECTOR_HOME variable contains the path of the last sourced .local.bashrc file. This allows one to run commands without being in the home directory of the project.
A new shell process is spawned whenever you change into the local directory. It will source the default rc files and the .local.<shell>rc.
$ cd my/project/dir $ recompile # ...
MIT, see LICENSE file.
| Back | FazBrowse Home | New Git URL |