8000 GitHub - pawurb/lazyme: A simple gem to help you optimize your shell workflow
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pawurb/lazyme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple gem to help you optimize your shell workflow

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0