About
Friends
-
Loading…snowy 8 days ago -
Loading…kitchen 1 day ago -
Loading…quotes 41 minutes ago -
Loading…junicksology about 1 year ago -
Loading…linzerschnitte 10 days ago -
Loading…mondkroete about 5 hours ago -
Loading…wordboner 8 days ago -
Loading…0xmndfck over 2 years ago -
Loading…kissmeonthelips about 15 hours ago -
Loading…stormgrass 9 days ago - +120
Click here to check if anything new just came in.
May 08 2012
May 01 2012
April 27 2012
Sharing history in zsh
One feature of any shell that is immensly useful is the history. Any command you made gets recorded, and you can then retrieve it later on with various commands (my favorite: Ctrl-R, which allows you to search through your history).
At any given time, I usually have anywhere between 10 and 20 terminals open somewhere (not counting remote sessions). Thanks to zsh I can share every command I enter between all those terminal after I enter it and make it accessible via the history.
This means I no longer have to remember which terminal I entered my command in, all I have to do is search the history.
How to enable this
In your .zshrc:
# Appends every command to the history file once it is executed
setopt inc_append_history
# Reloads the history whenever you use it
setopt share_history
April 26 2012
REPORTTIME in zsh
REPORTTIME is a nifty feature of zsh. If you set it to a non-negative value, then every time, any command you run that takes longer than the value you set it to in seconds, zsh will print usage statistics afterwards as if you had run the command prefixed with time.
So, for example, if we run rake to rebuild any out of date files in Rubinius, we get this:
~/Development/Rubinius ☺ » rake
[ … Lots of output …]
Finished in 136.926808 seconds
3866 files, 21497 examples, 59187 expectations, 0 failures, 0 errors
rake 160.78s user 26.49s system 81% cpu 3:50.20 total
(Yes, my prompt has a smiley in it. It turns sad and red when the exit status is non-zero)
How to enable this
Since this only makes sense in interative shells, I set this value in my .zshrc:
# Report CPU usage for commands running longer than 10 seconds
REPORTTIME=10
April 22 2012
April 20 2012
April 17 2012
April 11 2012
April 06 2012
March 29 2012
March 26 2012
March 25 2012
March 21 2012
March 19 2012
“ If you’re plagued with insufferable case of guilt for people “less fortunate” than you, then there’s way nobler things you could be doing with the $650. If not, and you accept that your money goes down the chain where everyone involved benefits from it, then you can enjoy that magical device you have—but you will be wise to not have your pitchfork and torch ready the next time somebody points a finger. ”— Made in China
March 18 2012
March 16 2012
March 15 2012
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...

