Skip to content

Comment on Shell Gamification (how I learn to use my shell aliases)parent

Comments

> 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'

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.