Jump to content

[SOLVED] Running a one-line zsh command in Alfred


Recommended Posts

I am trying to create a workflow that would display a random line from a .txt file.

 

In other other words, use the shuf command to pick a line and display it with a "Large type" object. 

 

My problem is I can't find a way to run the command "shuf -n 1 ~/Downloads/NameOfMyFile.txt".

 

I tried to use a "Run script object" wit no luck.

 

Here is the link to the workflow https://www.dropbox.com/s/0io9515ijeepixt/00_One_Line_Picker.alfredworkflow?dl=0

 

Thank you.

Link to comment
  • vitor changed the title to [SOLVED] Running a one-line zsh command in Alfred

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...