ruby-changes:65693
From: Martin <ko1@a...>
Date: Mon, 29 Mar 2021 19:42:00 +0900 (JST)
Subject: [ruby-changes:65693] d474b19b5b (master): [ruby/optparse] Use ZDOTDIR env var to locate .zshrc
https://git.ruby-lang.org/ruby.git/commit/?id=d474b19b5b From d474b19b5bcae951817319b821e62e68364767ad Mon Sep 17 00:00:00 2001 From: Martin Rey <martin.rey@m...> Date: Mon, 12 Oct 2020 11:47:00 +0200 Subject: [ruby/optparse] Use ZDOTDIR env var to locate .zshrc https://github.com/ruby/optparse/commit/c4977674bf --- misc/rb_optparse.zsh | 6 +++--- 1 file 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 @@ https://github.com/ruby/ruby/blob/trunk/misc/rb_optparse.zsh#L7 # 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. # -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/