mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
suppress error if already deactivated
This commit is contained in:
parent
a72a26406a
commit
f12a993bf3
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ _togglePoetryShell() {
|
|||
if [[ $poetry_active -eq 1 ]] && { [[ $in_poetry_dir -eq 0 ]] && [[ "$PWD" != "$poetry_dir"* ]]; }; then
|
||||
export poetry_active=0
|
||||
unset poetry_dir
|
||||
deactivate
|
||||
deactivate 2>/dev/null
|
||||
fi
|
||||
|
||||
# Activate the environment if in a Poetry directory and no environment is currently active
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue