From 2a2cbea9513943b111ba59591f48480bc0bab10c Mon Sep 17 00:00:00 2001 From: cia-rana Date: Fri, 8 Sep 2017 01:23:21 +0900 Subject: [PATCH] Change `[` to `[[` and move it into `eval` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 30b829f9..3512ae31 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ easy to fork and contribute any changes back upstream. Please make sure `eval "$(pyenv init -)"` is placed toward the end of the shell configuration file since it manipulates `PATH` during the initialization. ```sh - $ echo '[ -x $PYENV_ROOT/bin/pyenv ] && eval "$(pyenv init -)"' >> ~/.bash_profile + $ echo 'eval "$([[ -x $PYENV_ROOT/bin/pyenv ]] && pyenv init -)"' >> ~/.bash_profile ``` **Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`. **Ubuntu and Fedora note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.