Space2underscore
What is space2underscore
Change the space into underscore.
space2underscore is a useful command when you want to check out a branch.
Installation
Add this line to your application's Gemfile:
gem 'space2underscore'
And then execute:
$ bundle
Or install it yourself as:
$ gem install space2underscore
If your computer is Ubuntu then
$ sudo apt-get install xsel
If your computer is CentOS then
$ sudo yum -y install xsel
Usage
From the terminal:
$ space2underscore new branch
=> Do you create the new branch? [y/Y] # y
=> Switched to the new branch 'new_branch’
=> Branch has been created.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request