Using the semicolon (;) you can have an alias run multiple commands! Here's a few examples (the second being a little extreme):
alias cls='clear; ls'
alias lswin='mount /mnt/c ; cd /mnt/c/windows/desktop ;
clear ; ls ; cd - ; umount /mnt/c'
- 3 -
Either log-in again, or enter:
. .bashrc
...to have bash accept the changes.
Now for example, whenever you enter: ls the list will be in colour, or when you enter: x you'll enter the X Window system.
|