1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
Johann Rohwer
4b81c855da
Merge 2babe619a3 into 367e9381df 2024-09-23 17:52:46 +02:00
Carlo Sala
367e9381df
chore(git): fix typo 2024-09-23 17:32:44 +02:00
JM Rohwer
2babe619a3 feat(virtualenvwrapper): disable lazy script and force full script with environment variable 2021-08-16 14:47:21 +02:00
2 changed files with 8 additions and 4 deletions

View file

@ -163,7 +163,7 @@ function git_current_branch() {
}
# Outputs the name of the previously checked out branch
# Usage example: git pull origin $(git_current_branch)
# Usage example: git pull origin $(git_previous_branch)
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
function git_previous_branch() {
local ref

View file

@ -9,9 +9,13 @@ function {
$HOME/.local/bin/virtualenvwrapper.sh
do
if [[ -f "$virtualenvwrapper" ]]; then
if [[ $VIRTUALENVWRAPPER_NO_LAZY -eq 1 ]] && [[ $(echo $virtualenvwrapper | grep lazy) ]]; then
true
else
source "$virtualenvwrapper"
return
fi
fi
done
print "[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.\n"\
"Please install with \`pip install virtualenvwrapper\`" >&2