More Aliases

less than 1 minute read

Here are a few more of my shell aliases for anyone who’s interested. This is a follow-up to my shell clipboard aliases post.

Listing Files

I use exa instead of ls

alias ls='exa'
alias ll='ls -l'
alias la='ls -a'
alias l='ls'

Showing files

I use bat instead of cat or less. It provides syntax highlighting and better Markdown support

alias cat='bat'
alias less='bat'

Opening Files

Most files have a default opener. This command just opens them with that program.

alias o='xdg-open'

Grep colors

Adds syntax highlighting to grep

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

I should probably switch these over to ripgrep since it’s recursive and much faster.


I’ve recently switched to Neovim instead of Vim for my editing needs.

alias vi='nvim'
alias vim='nvim'

Prettier Mount

Prettifies the mount output into columns

alias mount='mount | column -t'