Jump to content

Using variables in shell commands


Recommended Posts

So is this a thing I can do in a Run Script object?

 

cd "${var:hugoBlogPath}"

 

I want to store paths to the user's content directory and terminal commands and then execute them in a Run Script object but it doesn't appear to matter how I format the commands they don't work. 

Link to comment

So I did some more testing and used the debug tool and found out that you don't add the `var:` part of the variable declaration

 

So it is

 

cd ${hugoContentPath}"

 

This will let Alfred do variable substitution in the Run Script object. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...