-
Posts
9 -
Joined
-
Last visited
Reputation Activity
-
clevermistakes got a reaction from vitor in Bash Commands w/o Terminal Window
No problem if it's a strange one off, I usually use it to open up specific or hidden files quickly for editing, things like /.ssh/config, key files, scripts or containers I'm working on, etc. Not a big deal to do it from Sublime, just became a habit with the ">" command from Alfred...I can continue to use >subl <whateverfile> and use . for everything else!
Thanks for all your help Vitor, and the workflow itself! It's been great so far!
-
-
clevermistakes reacted to vitor in Bash Commands w/o Terminal Window
If I do it with Atom’s CLI script, it works and I get:
[input.keyword] Processing output of 'action.script' with arg 'atom' [action.script] Processing output of 'action.script' with arg ''
So I installed Sublime Text and tried it. I also don’t get the second line, which suggests it’s getting stuck. And it is. If you check your running processes you’ll see it is started but doesn’t show itself. So I wonder it maybe subl doesn’t like to be called from inside a script. I try it, and it works. So maybe it doesn’t like being called from the script this workflow creates on the fly? I try it manually, and it works.
At this point, I do the most basic thing I can. I set up a simple Keyword in Alfred connected to a single Run Script that consists of nothing but /usr/local/bin/subl. I try it, and it hangs! So at this point I’m pretty sure there’s something about the Alfred+subl mix that is not working and feel confident in saying it’s not failing due to the Workflow. I can open a bug report but everything else is now out of my control.
But now I also ask, why are you running subl from Alfred? Why not just call Sublime Text itself?
-
clevermistakes reacted to vitor in Bash Commands w/o Terminal Window
If you ever run a command where you do care about the output, action it with ⌘↩ and the result will be shown in large type on the screen.
-
clevermistakes got a reaction from vitor in Bash Commands w/o Terminal Window
This is perfect! Thanks a ton for writing this! I knew someone had to have the same complaint as me somewhere. I'm glad to know there's plenty of us risky bash users who don't care about what the shell says back to us! haha
-
clevermistakes reacted to vitor in Bash Commands w/o Terminal Window
Hello and welcome to the forums, @clevermistakes.
RunCommand does what you’re after (disclaimer: I wrote it).
It reads your shell’s configuration (so it gets your aliases, environment, PATH, and the like) and runs the command you passed through Alfred. It does so without needing to open a Terminal.