- 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_aliases
being sourced by~/.bashrc
by default) on each shell init file.For example, I appended
~/.bash_aliases
on~/.zsh_aliases
so that I can use same aliases and user-defined functions in both terminal.