commit | 070107ab956dd39a33a94b7e92fc4f2e64bfa47a | [log] [tgz] |
---|---|---|
author | Robert R Evans <robert@codewranglers.org> | 周六 10月 02 15:23:57 2010 -0700 |
committer | Robert R Evans <robert@codewranglers.org> | 周六 10月 02 15:23:57 2010 -0700 |
tree | 073476fa88dda656637e9faab08bd58703c49b30 | |
parent | 1081b7b2e032712e7b3e6ca68f154d02805dd95a [diff] [blame] |
Added a function to get your public IP address
diff --git a/lib/history.bash b/lib/history.bash index 3d489e9..c7dcaa6 100644 --- a/lib/history.bash +++ b/lib/history.bash
@@ -14,4 +14,8 @@ export HISTSIZE=5000 -export AUTOFEATURE=true autotest \ No newline at end of file +export AUTOFEATURE=true autotest + +function rh { + history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head +} \ No newline at end of file