summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Rey <martin.rey@mailbox.org>2020-10-12 11:47:00 +0200
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-29 15:55:41 +0900
commitd474b19b5bcae951817319b821e62e68364767ad (patch)
tree13ae265d2ee53ccf86473177f1f8d38d7ce71da2
parentd87b8ce6477aed054fb52a5ab6041eebef106a9c (diff)
[ruby/optparse] Use ZDOTDIR env var to locate .zshrc
https://github.com/ruby/optparse/commit/c4977674bf
-rwxr-xr-xmisc/rb_optparse.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/rb_optparse.zsh b/misc/rb_optparse.zsh
index 7407e87..a08b3dd 100755
--- a/misc/rb_optparse.zsh
+++ b/misc/rb_optparse.zsh
@@ -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.
#