Skip to content

Commit

Permalink
Use ZDOTDIR env var to locate .zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
m-rey authored and nobu committed Dec 2, 2020
1 parent c16887e commit c497767
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc/rb_optparse.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# cp rb_optparse.zsh ~/.zsh.d/rb_optparse.zsh
#
# (2) load the script, and add a directory to fpath before compinit.
# echo '. ~/.zsh.d/rb_optparse.zsh' >> ~/.zshrc
# echo 'fpath=(~/.zsh.d/Completion $fpath)' >> ~/.zshrc
# echo 'autoload -U compinit; compinit' >> ~/.zshrc
# echo '. ~/.zsh.d/rb_optparse.zsh' >> "${ZDOTDIR:-~}/.zshrc"
# echo 'fpath=(~/.zsh.d/Completion $fpath)' >> "${ZDOTDIR:-~}/.zshrc"
# echo 'autoload -U compinit; compinit' >> "${ZDOTDIR:-~}/.zshrc"
#
# (3) restart zsh.
#
Expand Down

0 comments on commit c497767

Please sign in to comment.