Skip to content

Commit

Permalink
First attempt at justinmayer#204
Browse files Browse the repository at this point in the history
  • Loading branch information
Evpok authored May 15, 2021
1 parent 295c308 commit dc7e88b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions virtualfish/virtual.fish
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ end
function __vf_activate --description "Activate a virtualenv"
# check arguments
if [ (count $argv) -lt 1 ]
echo "You need to specify a virtualenv."
return 1
if [ -n $VIRTUALFISH_ACTIVATION_FILE ]
__vf_activate (cat $VIRTUALFISH_ACTIVATION_FILE)
else
echo "You need to specify a virtualenv."
return 1
end
end
if not [ -d $VIRTUALFISH_HOME/$argv[1] ]
echo "The virtualenv $argv[1] does not exist."
Expand Down

0 comments on commit dc7e88b

Please sign in to comment.