[RUBY] direnv note

prepare

If you use zsh.

.zshrc


eval "$(direnv hook zsh)"

set EDITOR env_val

python virtualenv

  1. Use layout python
  2. Use pre-installed virtualenvs

layout python

.envrc


layout python <phtyon-path>

Create new virtualenv in <projectdir>/.direnv/...

Activate pre-installed virtualenv

.envrc


# source <virtualenv-path>/activate e.g ↓	
source ~/.virtualenvs/aws/bin/activate

Ruby bundler

add_PATH & binstub

python


bundle install --path vendor/bundle --binstubs=vendor/bundle/bin

.envrc


PATH_add vendor/bundler/bin

But gem command point global gem's path (not vendoer/bundler ...). To show all installed gems, run bundle exec gem list .

Recommended Posts

direnv note
Note
Note
Django note 4
pyenv note
direnv (linux)
Note: Python
Python note
Django Note 1
Django note 3
Django note 2
[Note] RepresenterError
[Note] Image resizing
Python study note_002
Note: Python Decorator
Python programming note
[Python] Learning Note 1
Kinesis Firehose Note
Python study note_004
[Note] Regarding Tensorflow
Note: confusing nonlocal
Markdown Beginner's Note
Python study note_003
Completely personal note
Flask's personal note # 2
Jupyter Study Note_002
TensFlow Preferences Note
[Note] openCV + python
Just a note
PyCharm Preferences Note
Python beginner's note
Flask's personal note # 1
Jupyter Study Note_003
Jupyter Study Note_007
[Note] pandas unstack
Jupyter Study Note_005