This repository contains minimalistic dev configuration alias files to be productive with zsh
terminal on MacOS.
In order to contain cleaniness of ~/.zshrc
file we're going to use ~/.zsh_aliases
file as a primary source file.
-
Open the terminal and make sure you're in the home directory: Running
pwd
terminal command should respond with/Users/<username>/
. In case of the failure, runcd ~
-
Copy the
.zsh_aliases
file from this cloned repository to your home directory:cp .zsh_aliases ~/.zsh_aliases
-
Append the contents of
.zshrc_edit
to your~/.zshrc
file:cat .zshrc_edit >> ~/.zshrc
-
Reload your
~/.zshrc
and~/.zshrc_aliases
files to apply the changes:source ~/.zshrc && source ~/.zshrc_aliases
Upon successful setup outcome, you will be able to execute aliases without typing out entire command. As an example try using .
and it should return with folder name that is level above of your current directory.
Now, you can use all the aliases specified in .zsh_aliases
right from your terminal. Customize .zsh_aliases anytime to add or update aliases, and simply reload ~/.zshrc
to see the changes.
- Changes not applied: If your aliases are not recognized, ensure that you’ve correctly sourced
~/.zsh_aliases
in your~/.zshrc
file and thatsource ~/.zshrc
was run. - File location: Confirm that
.zsh_aliases
is in the the home directory after executing step 2 in setup section. Make sure file is there by runningls -a ~
to list all hidden files.
Configuration files are not meant to be finite and therefore editing and saving changes will require to perform source <filename>
command to make system aware about the changes in configuration files.
In case of failure running source <filename>
command latest changes will be reverted to previous state.
Feel free to submit issues or pull requests for additional aliases, fixes, or improvements. Happy coding!