Hacker Newsnew | past | comments | ask | show | jobs | submit | basename's commentslogin

I've been looking for a simple way to separate commands from their arguments, in 'history' output. Aliased.

    [ -x $HOME/bin/colorize.py ] && alias h="history | colorize.py 4"


It amazes me what git is capable of, fresh out of the box.

Most of the things that I've found useful over the years - procmail and mutt, or vim - need quite a bit of configuring before unleashing their full power. Writing procmail recipes is like potting-training a pig.

But for the most part, git shows up ready to work.


Or, configure git to use a different editor, and do things properly.

    git config --global core.editor [your choice]


Something I use quite often, to create a new Maildir under $HOME

    mkdir -p ~/Mail/{cur,new,tmp}


I didn't know that mkdir took flags- thanks for that. That's really handy.

Reference for -p for anyone else who doesn't know:

> -p Will create nested directories, but only if they don't exist already. [1]

[1] https://superuser.com/questions/165157/what-does-mkdir-p-fla...


What country does this serve?


United Kingdom


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: