Utility functions to run multiple commands at once for Z Shell and Bash.
- Clone this repository to any path. Take note of the path where you cloned it using the
pwd
command.$ cd shellchemy && pwd /Users/myuser/shellchemy
- Open your favorite text editor and access your shell configuration file. Depending on your OS and shell, the file's name can be
~/.bashrc
,~/.zprofile
,~/.bash_profile
,.profile
, etc. - Add the following line at the end of the file to execute shellchemy. Ensure the source path is the same as in step 1, followed by
/index
.source /Users/myuser/shellchemy/index
- Open a new terminal to apply your changes.
Add the following line to execute the theme after the the line executing shellchemy.
source /Users/myuser/shellchemy/prompt
Add the line with the organization name variable before the line executing shellchemy. If the Jira URL is https://myorganization.atlassian.net/
, then the value should be 'myorganization'
.
BP_JIRA_ORGANIZATION='myorganization'
If you lack permissions to add .nvmrc
files and need to work with different versions of Node in every repository, you can use the cdnvm
function. Define custom aliases to change directory and use the desired version.
alias cdrepo1="cdnvm /Users/myuser/myorganization/repo1 10.13";
alias cdrepo2="cdnvm /Users/myuser/myorganization/repo2 16";
Assuming you install shellchemy with all the additional features, your shell configuration file should look something like this:
BP_JIRA_ORGANIZATION='myorganization'
source /Users/myuser/shellchemy/index
source /Users/myuser/shellchemy/prompt
alias cdrepo1="cdnvm /Users/myuser/myorganization/repo1 10.13";
alias cdrepo2="cdnvm /Users/myuser/myorganization/repo2 16";
Perhaps you clonned the repository with autocrlf
enabled. You can disabled it in your ~/.gitconfig
file or run
git config --global core.autocrlf false
If you need to keep autocrlf
enabled, you can explore the Github issue in ohmyzsh for more options.