Browse Source

common-aliases: fix hardcoded .zshrc path (#5926)

Mohammad Saboorian 4 years ago
parent
commit
24c2b755ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/common-aliases/common-aliases.plugin.zsh

+ 1 - 1
plugins/common-aliases/common-aliases.plugin.zsh

@@ -13,7 +13,7 @@ alias lS='ls -1FSsh'
 alias lart='ls -1Fcart'
 alias lrt='ls -1Fcrt'
 
-alias zshrc='${=EDITOR} ~/.zshrc' # Quick access to the ~/.zshrc file
+alias zshrc='${=EDITOR} ${ZDOTDIR:-$HOME}/.zshrc' # Quick access to the .zshrc file
 
 alias grep='grep --color'
 alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '