Skip to content

Instantly share code, notes, and snippets.

@0k4
Created August 15, 2017 13:33
Show Gist options
  • Save 0k4/5a448a87ceb3ff8e0298e3a531214f92 to your computer and use it in GitHub Desktop.
Save 0k4/5a448a87ceb3ff8e0298e3a531214f92 to your computer and use it in GitHub Desktop.
Adding permanent aliases to zsh (.zshrc)
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