Managing bash aliases
Bash aliases are great. Whether you use them to quickly connect to servers or just soup up the standard bash commands, they are a useful tool for eliminating repetitive tasks. I’m always adding new ones to optimize my workflow which, of course, lead to me create aliases to optimize that workflow. While there are more complete CLI alternatives for alias management like aka, I prefer two simple commands for managing my aliases, which I keep in ~/.bash_aliases
.
alias eal="subl ~/.bash_aliases"alias sal='. ~/.bash_aliases; echo "Sourced ~/.bash_aliases";'
The aliases are eal
for “Edit ALiases” and sal
for “Source ALiases”. The command subl
is the OSX CLI for Sublime Text. For reference, .
is the same as source
. Enjoy.
Recommended
Git aliases
Here's a quick post for managing your git shortcuts. If you use git regularly, you should have a .gitconfig file in your home directory that looks...
qc: quick calculator
If you spend most of your time in the command line, you don't want to leave to do math. Qc is a script that does in-line command line math without...