Comment on Ask HN: What are the best things in your shell config? Functions, aliases, etc.Comments−wruza1yI always alias rm, mv, cp, ln to -i.Also, gt, gtt, gl, ga, gc, gu, gp, gd, gd2 for git status -s, status, log, add, commit, pull, push, diff, diff to rev. All with useful (to me) flags.My prompt looks like this: \n [<status>] user@site [<cwd>]\n $ So that I see where I am, all commands line up, the last status is obvious and also there’s never this: $ cat nonewline.txt Oops no newline$ _ My .inputrc always contains https://stackoverflow.com/a/1030206
Comments
I always alias rm, mv, cp, ln to -i.
Also, gt, gtt, gl, ga, gc, gu, gp, gd, gd2 for git status -s, status, log, add, commit, pull, push, diff, diff to rev. All with useful (to me) flags.
My prompt looks like this:
So that I see where I am, all commands line up, the last status is obvious and also there’s never this: My .inputrc always contains https://stackoverflow.com/a/1030206