- You can just paste the whole function into your shell and enter,
- and just run
colorgrid
-
Save to where you prefer (like
~/.colorgrid), -
append to your shell init file like
~/.bash_aliases:if [ -f ~/.colorgrid ]; then . ~/.colorgrid fi
-
and then source the file and run
You don't have to append on every shell you use, if you source the same alias file (like
~/.bash_aliasesbeing sourced by~/.bashrcby default) on each shell init file.For example, I appended
~/.bash_aliaseson~/.zsh_aliasesso that I can use same aliases and user-defined functions in both terminal.