screencastmint / mhack

Add your set of commands for mac with one logic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mhack

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)

🎥 How to use mhack

  • 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

  1. Copy the folder where you want

  2. Run bundler from Mhack folder

    bundle install

  3. Add an alias into .bash_profile to this main.rb

    alias mhack='ruby /Path/To/Folder/Mhack/main.rb'

  4. Edit config.rb

  5. 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  

About

Add your set of commands for mac with one logic

License:MIT License


Languages

Language:Ruby 100.0%