Skip to content

Instantly share code, notes, and snippets.

@jojonki
Last active February 20, 2021 17:58
Show Gist options
  • Select an option

  • Save jojonki/808575aac293b0538ae4b108aefbb028 to your computer and use it in GitHub Desktop.

Select an option

Save jojonki/808575aac293b0538ae4b108aefbb028 to your computer and use it in GitHub Desktop.

Revisions

  1. jojonki revised this gist May 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .envrc
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    export THIS_CONDA_ENV=OpenNMT
    export THIS_CONDA_ENV=your_conda_env_name
    activate_conda $THIS_CONDA_ENV
  2. jojonki revised this gist May 3, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion .direnvrc
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    activate_conda(){
    echo "---activate_conda($1)"
    eval "$(conda shell.zsh hook)"
    conda activate $1
    }
  3. jojonki revised this gist May 3, 2020. 2 changed files with 7 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions .direnvrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    activate_conda(){
    echo "---activate_conda($1)"
    eval "$(conda shell.zsh hook)"
    conda activate $1
    }
    2 changes: 2 additions & 0 deletions .envrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    export THIS_CONDA_ENV=OpenNMT
    activate_conda $THIS_CONDA_ENV
  4. jojonki created this gist May 3, 2020.
    1 change: 1 addition & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    eval "$(direnv hook zsh)"