Skip to content

Commit

Permalink
add sublime project handling
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Jan 2, 2022
1 parent d60aaa9 commit 3b8ef9b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,13 @@ workon() {
else
conda activate $env
fi
echo "{\"venvPath\":\"$HOME/miniconda/envs\",\"venv\": \"$env\"}" > pyrightconfig.json
if [ ! -f "pyrightconfig.json" ]; then
echo "{\"venvPath\":\"$HOME/miniconda/envs\",\"venv\": \"$env\"}" > pyrightconfig.json
fi
if [ ! -f "$name.sublime-project" ]; then
echo "{\"folders\":[{\"path\": \".\"}]}" >> "$name.sublime-project"
fi
subl "$name.sublime-project"
}
alias wo=workon

Expand Down

0 comments on commit 3b8ef9b

Please sign in to comment.