Skip to content
A simple gem to help you optimize your shell workflow
Branch: master
Clone or download
Latest commit 48c3593 Apr 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin version bump and smarter display Dec 10, 2017
lib [#1] add an option to provide a custom history file path Feb 11, 2018
.gitignore initial commit Aug 28, 2017
Gemfile initial commit Aug 28, 2017
LICENSE.txt initial commit Aug 28, 2017
README.md readme Apr 24, 2018
Rakefile initial commit Aug 28, 2017
lazyme.gemspec version bump and smarter display Dec 10, 2017

README.md

Lazyme Gem Version

Lazyme is a simple gem that helps you optimize your laziness. It displays your most often used shell commands so that you can change them into aliases and eventually type less.

Installation

gem install lazyme

Usage

lazyme =>
+---------------------------------------------+-------+
|                     Lazyme                          |
+---------------------------------------------+-------+
|...                                          | ...   |
| ei                                          | 21    |
| gpstg                                       | 22    |
| gstp                                        | 23    |
| zs                                          | 28    |
| s .                                         | 30    |
| zrr                                         | 32    |
| gpshh                                       | 60    |
| rss                                         | 70    |
| c                                           | 75    |
| gd                                          | 107   |
| o .                                         | 123   |
| gst                                         | 130   |
| ls                                          | 179   |
| gl                                          | 310   |
| gp                                          | 445   |
| gds                                         | 540   |
| gaa                                         | 817   |
| g                                           | 3365  |
+---------------------------------------------+-------+
| Command                                     | Count |
+---------------------------------------------+-------+

You can set aliases by adding following lines into your .bashrc or .zshrc files:

alias gr='grep — color'
alias g='git status'
alias gaa='git add . -A'

function gm() {
  git commit -m "$*"
}

If your history file is in a non-standard location you need to provide its path when running the lazyme command:

lazyme ~/files/history

You can use this gem also to check the usage of your Ruby IRB commands. You need to persist history first. Add to your ~/.irbrc file:

require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 10000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"

Than just:

lazyme ~/.irb-history
You can’t perform that action at this time.