Created
August 15, 2017 13:33
-
-
Save 0k4/5a448a87ceb3ff8e0298e3a531214f92 to your computer and use it in GitHub Desktop.
Adding permanent aliases to zsh (.zshrc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| funcname ali() { | |
| read 'ALIASNAME?Enter alias name: ' | |
| read 'ALIASCOMMAND?Enter the command: ' | |
| equals="=" | |
| c="alias ""$ALIASNAME$equals'$ALIASCOMMAND'" | |
| echo $c >> ~/.oh-my-zsh/custom/aliasfile.zsh | |
| zsh | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment