Clone this repository to your local machine, make bump.sh
executable and create a symlink to some place inside your $PATH
.
In this example I clone the repository into ~/bin/source/
.
# go to the target directory
$ cd ~/bin/source
# clone the repository
$ git clone https://github.com/kevingimbel/bump.git
# navigate into the new directory
$ cd bump
# make it executable
$ chmod +x bump.sh
# link it to a variable inside your path, e.g. /usr/local/bin
$ (sudo) ln -s $(pwd)/bump.sh /usr/local/bin/bump
Go into the bump git directory, e.g. ~/bin/source/bump
when following the guide above, and run git pull origin master
.
sage: bump [options] Message
Write a bump text to bump.txt
Options:
-u,--usage Show usage message
-h,--help Show help
-v,--version Show version and author info
-g, --git add all changes to git and create commit message
$ bump "Your bump message"
The above command will create (or write to) a bump.txt
file in the current
directory with your bump message and the date in the format [MM/DD/YYYY]. That's
it.
Note The last parameter is always assumed to be the message unless you
specifiy it with -m
. If you write
$ bump "a message" -g
the message will be -g
.
You can set an environmental variable named _bump_default_git
which is written in front of your git commit message when using the -g
flag. Choose the way to set the variable that best suites your needs.
$ export _bump_default_git="[WIP]" && bump -g "Testing things"
# inside ~/.zshrc
export _bump_default_git="[DEV]"
The default set inside the script is [BUMP]
.