Shorter is an opinionated pack of short versions (aliases) of some common commands. Adapted for Mac.
One shell file = one alias. Following the single-responsibility principle.
source ~/shorter/shorter.zsh
Loaded aliases:
- f : Search file by name
- git-clean-branches : Cleanup local orphaned branches
- gp : Git add all and push
...
-
cd ~
(or any directory of your choice) -
git clone <this-repository-url>
-
source ~/shorter/shorter.zsh
-
If the result looks ok, write the previous command in
~/.zshrc
:echo "source ~/shorter/shorter.zsh" >> ~/.zshrc
mkdir aliases/newalias
touch aliases/newalias/newalias.sh
echo -e "echo \"New alias\"\nalias newalias=\"ls -al\"" >> aliases/newalias/newalias.sh
reload
newalias
rm -rf aliases/newalias
reload