Hacker News new | past | comments | ask | show | jobs | submit login

I sort of did the opposite. I took all my aliases that were created because I couldn't remember something (commandline switches, non-trivial tool invocations, non-trivial regexes, etc.) and just set the alias to echo the command. Whenever I'd attempt to use the alias, it would just print and I'd have to retype it by hand. Eventually I learned everything I used to have trouble remembering and have became much more fluent with command line utilities and bash.

I still leave convenience aliases intact. Nobody needs to be typing --color=auto every time they ls.




> I still leave convenience aliases intact. Nobody needs to be typing --color=auto every time they ls.

Hm. All of my aliases are convenience aliases:

cls=clear # Yes, I started out in DOS

ls=ls --color=auto

ll=ls -l

ll.=ls -al

And that's it. It's amazing how different peoples' workflows become once a tool allows a certain level of customizability.


> cls=clear # Yes, I started out in DOS

ctlr + l is your new best friend.


cmd + k (too)


cmd-k also clears the scrollback buffer. It's probably the single thing I miss most after moving back to linux from macOS.


You can bind Alt-K to Reset and clear in gnome-terminal's keyboard bindings.


Thank you!

My remaining minor complaint: alt-k loses the prompt.


Alt-K and Ctrl-l will solve that :)


> ctlr + l is your new best friend.

I use xterm (goes to check before I make an ass out of myself) and I'm utterly shocked this works. Amazing. Ctrl-l does indeed work.


alias ll='ls -halv'




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: