mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 05:59:46 +08:00
suppress error if already deactivated
This commit is contained in:
parent
a72a26406a
commit
f12a993bf3
@ -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…
Reference in New Issue
Block a user