Ohmyzsh: Alias on separet file

Created on 2 Jul 2016  路  1Comment  路  Source: ohmyzsh/ohmyzsh

Hello,

I want to transfer my alias and function on separate file but I don't know how to do.

Actually all function and alias is in the .zshrc

thank you

Support

Most helpful comment

Hi there, you have two options:

  • Put them on a separate file anywhere you want, for example, ~/.aliases, and put source PATH_TO_YOUR_FILE at the bottom of your zshrc file.
  • The other option is putting that in $ZSH_CUSTOM/YOUR_FILE_NAME.zsh and OMZ will automatically load when loading it. The important thing about the file name is that it ends in .zsh.

>All comments

Hi there, you have two options:

  • Put them on a separate file anywhere you want, for example, ~/.aliases, and put source PATH_TO_YOUR_FILE at the bottom of your zshrc file.
  • The other option is putting that in $ZSH_CUSTOM/YOUR_FILE_NAME.zsh and OMZ will automatically load when loading it. The important thing about the file name is that it ends in .zsh.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

oskargicast picture oskargicast  路  3Comments

mrgaolei picture mrgaolei  路  3Comments

dogrizz picture dogrizz  路  3Comments

faxotherapy picture faxotherapy  路  3Comments

robsonpeixoto picture robsonpeixoto  路  3Comments