Mhack is a small ruby script that includes a set of commands with the same logic "Techno Action and (Keyword and/or Params)"
#Logic
> mhack @techno :action params_one ...
#Example
> mhack @gem :new gem_name
#Screencast example (french)
- Techno are prefixed by @
- Action are prefixed by :
- Keyword Capitalize the keyword
- Params have no prefixes
Mhack is :
- Useful in case of blackout
- Easy to use
- Easy to understand
- Easy to edit
- Full of tricks
Mhack is not :
- A shortcut collection
- Exhaustive
Requirements : You need Mac, Ruby 2.x, bundler and imagemagick
-
Copy the folder where you want
-
Run bundler from Mhack folder
bundle install
-
Add an alias into .bash_profile to this main.rb
alias mhack='ruby /Path/To/Folder/Mhack/main.rb'
-
Edit config.rb
-
Launch terminal and have fun !
#Technologies
By default, Mhack included some technologies. You can easily add or create other technology with gem mhackmd_technologie.
Technologies by default :
- @all => To see all technologies
- @mac => Commands for manage your mac
- @finder => Commands for manage your finder
- @dock => Commands for manage your dock
- @gem => Commands for manage gem
- @editor => Use default text editor
- @web => Use default browser
#Actions
Standard actions :
- :doc => Launch github page of mhackmd @techno
- :help => See the documentation of @techno
- :new => Create project, file, document... with @techno
- :open => Open webpage, folder, file... with @techno
To check Actions of a specific technology :
> mhack @techno :help