Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update installation script to remove redundant PATH addition #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,26 @@ This project is based on [Conventional Commits](https://www.conventionalcommits.

## Commands

| Command | Returns |
| --------------------- | ------------------------------- |
| `git feat <message>` | feat: message |
| `git feat <scope> <message>` | feat(scope): message |
| `git docs <message>` | docs: message |
| `git docs <scope> <message>` | docs(scope): message |
| `git chore <message>` | chore: message |
| `git chore <scope> <message>` | chore(scope): message |
| `git fix <message>` | fix: message |
| `git fix <scope> <message>` | fix(scope): message |
| `git refactor <message>` | refactor: message |
| `git refactor <scope> <message>` | refactor(scope): message |
| `git style <message>` | style: message |
| `git style <scope> <message>` | style(scope): message |
| `git test <message>` | test: message |
| `git test <scope> <message>` | test(scope): message |
| `git build <message>` | build: message |
| `git build <scope> <message>` | build(scope): message |
| `git perf <message>` | perf: message |
| `git perf <scope> <message>` | perf(scope): message |

| Command | Returns |
| -------------------------------- | ------------------------ |
| `git feat <message>` | feat: message |
| `git feat <scope> <message>` | feat(scope): message |
| `git docs <message>` | docs: message |
| `git docs <scope> <message>` | docs(scope): message |
| `git chore <message>` | chore: message |
| `git chore <scope> <message>` | chore(scope): message |
| `git fix <message>` | fix: message |
| `git fix <scope> <message>` | fix(scope): message |
| `git refactor <message>` | refactor: message |
| `git refactor <scope> <message>` | refactor(scope): message |
| `git style <message>` | style: message |
| `git style <scope> <message>` | style(scope): message |
| `git test <message>` | test: message |
| `git test <scope> <message>` | test(scope): message |
| `git build <message>` | build: message |
| `git build <scope> <message>` | build(scope): message |
| `git perf <message>` | perf: message |
| `git perf <scope> <message>` | perf(scope): message |

## Install

Expand All @@ -37,15 +36,15 @@ git clone [email protected]:imcvampire/git-semantic-commit.git ~/.git-semantic-comm
Then add the folder to your `$PATH` in `~/.bashrc` or `~/.zshrc`, respectively:

```sh
export PATH=$PATH:$HOME/.git-semantic-commits:$PATH
export PATH=$PATH:$HOME/.git-semantic-commits
```

Save and source the changes:

```sh
source ~/.bashrc # if using Bash
source ~/.zshrc # if using Zsh
``````
```

That's it! Enjoy your workflow and consistency improvements 🎉

Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# !/bin/bash
export PATH=$PATH:$HOME/.git-semantic-commits:$PATH
export PATH=$PATH:$HOME/.git-semantic-commits
bashrc=$HOME"/.bashrc"
zshrc=$HOME"/.zshrc"

Expand All @@ -8,7 +8,7 @@ packageDir=$(pwd)
if [ -f "$bashrc" ]
then
echo "Installing on Bash"
dir="export PATH=$PATH:$HOME/.git-semantic-commits:$PATH"
dir="export PATH=$PATH:$HOME/.git-semantic-commits"

echo "" >> $zshrc
echo "#git-semantic-commits (delete this lines to 'uninstall' commands)" >> $bashrc
Expand All @@ -18,7 +18,7 @@ fi
if [ -f "$zshrc" ]
then
echo "Installing on ZSH"
dir="export PATH=$PATH:$packageDir:$PATH"
dir="export PATH=$PATH:$packageDir"

echo "" >> $zshrc
echo "#git-semantic-commits (delete this lines to 'uninstall' commands)" >> $zshrc
Expand Down