This is a little script I use to avoid having to edit any files when I define a new alias.
Example usage:
$ palias g=git
This file needs to be sources from the main bash config file.
| # `palias` command. Same as `alias` but persists the aliases in this file. | |
| PALIAS_FILE=~/.profiledir/palias.sh | |
| palias () { | |
| if alias "$*"; then | |
| echo alias \""$*"\" >>$PALIAS_FILE | |
| fi | |
| } | |
| # START: ALIASES |