9 Bash Aliases to Make Your Life Easier

Allow me to share with you some intuitive Bash alias definitions for the command line interface in my first Medium post.

Bash aliases, together with tab completion on the command line interface, make you more efficient and productive at work because essentially you type less, and you are less prone to erroneous command inputs.

1. cdd

Similar tocd, this changes directory and also lists its contents.

Usage:

$ cdd myFolder

Alias:

function cdd() { cd $1 ls}

2. I don’t Git it

Git pushing and pulling is such a pain. Let’s summarise all those lines of commands in a line.

Usage:

$ gitpush "my commit message"

The above adds your files, commits with a commit message, and pushes to your origin from your current branch. To pull any changes, simply: