5
I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files with a .zsh extension.
I can make a file of aliases there using the keyword "alias" as normal. However, when I try making a file with the line "source ~/.aliases" -- this does not work.
What is the best way to go about this? Should I ditch the recommendation to use the oh-my-zsh/custom/ folder and instead source from .zshrc ?
I was trying to make an aliases.zsh file that consisted of a single line "source ~/.aliases" – Elfen Dew – 2018-05-24T04:16:29.347
1I want to keep my alias dotfile ~/.aliases and have zsh source this file. I could only accomplish this by adding "source ~/.aliases" to the .zshrc file, but I was trying to follow the recommended format for adding custom aliases with oh-my-zsh. The reason I was doing it this way is because I wanted a single .aliases file independent of what shell I'm using. – Elfen Dew – 2018-05-24T04:21:17.230