1

I have the following in build-site.bat:

set JEKYLL_ENV=production 
bundle exec jekyll build

I'd like to have the bat file residing in my documents area under a folder say scripts. I'd then like to be able to cd into a Github repo, and type build-site and have the bat run.

Is this possible?

Thanks!

1 Answer 1

0

Add your scripts directory the PATH of your environment. Afterwards stuff that's within your PATH will be available the way you want.

As for how to change the PATH have a look at:

There are plenty more resources available.

1
  • It worked, thanks so much! I will accept your answer when I can :D
    – Giacomo
    Commented Feb 19, 2019 at 12:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .