Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

in order to avoid having to unlearn commands like cat and ls, I use aliases to invoke bat and exa.

Here's a screenshot of my fish config: https://twitter.com/mxschumacher/status/1168993005744918528



For clearing the screen, try 'Ctrl-l' (lowercase L)

A quick lookup suggests fish handles some of these differently than bash (apparently fish clears the buffer with this shortcut, so your scroll back is gone?).

There are a quite a few of these for anyone interested: https://kapeli.com/cheat_sheets/Bash_Shortcuts.docset/Conten...


I would do

  alias ls "exa"
  alias ll "exa -ll"
That way you get the nice shorter output which comes in handy for piping ls things like:

  ls -d | xargs ls
Lists the files in subdirectories.


good idea - thank you!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: