`scons run` target completion for zsh - zsh

Is there scons target completion in zsh, similar to Makefile completion?

No, there isn't.
Patches welcome, I'm sure. 🙂

Related

ZSH $ARG_ZERO not available

I am trying to use $ZSH_ARGZERO according to this answer.
However that variable is not available in my terminal (interactive) or scripts. I assume a setopt has to be allowed (although I might be incorrect). I am not aware of having disabled it in my terminal.
my zsh --version is zsh 5.1.1.
Thank you
$ZSH_ARGZERO was introduced in Zsh 5.3. You will need to upgrade.

find out what qmake executable is used inside a pro file

I need to call qmake in one of the make target commands. The question is how can I figure out which qmake has been called when executing this qmake. Like when in a bash script you ask for the executable.
Obviously I'm in an environment with multiple Qt installations, including defaults of Ubuntu 14.04 and qmake is the decider of which libraries are going to be fed into compilation (I'm not 100% sure on the later).
Any help is greatly appreciated!
I think this might be what you're looking for: http://doc.qt.io/qt-5/qmake-language.html#accessing-qmake-properties
$$[QT_INSTALL_BINS]/qmake should be the path.
Simply add a line that prints the version:
qmake --version

Can I run a script with LispWorks, like with SBCL's "--script" option?

I mean with SBCL I can run a script as easy as sbcl --script piece-of-code.lisp. But I can't find an obvious way to do so with LispWorks. Of course there's always a deploy and run option, but it requires a build script for every little exercise.
Is there a way to run a script with LispWorks without building an executable or running it from listener manually?
I'd recommend you create lispworks console, like in:
http://www.lispworks.com/documentation/lw60/LW/html/lw-177.htm#83244
Then, you can use lw-console -init foo.lisp without IDE.
The sbcl --script is to make sbcl aware the first line of your code might be #!/usr/bin/sbcl ... and LispWorks doesn't seem to have that.
However, if you just want to run a script and not make it executable, then you can write:
lispworks -init my-lisp-init
And it will load my-lisp-init.lisp if I understood the documentation right
The various command line option for the latest LispWorks 6.1 are described here:
http://www.lispworks.com/documentation/lw61/LW/html/lw-517.htm#pgfId-891723

What makes Ctrl+Q work in zsh

I'm a zsh user who started off with a plain oh-my-zsh configuration and now I try to learn zsh by importing the parts I care about from oh-my-zsh into my own .zshrc and then completely remove oh-my-zsh.
When I now finally went cold turkey and removed oh-my-zsh I noticed that one of my most used shortcuts, Ctrl+Q has stopped working. I've investigated this and found the command to be called push-line according to this source.
I have no idea how to start using that ZLE feature though. I'm not even sure how to check if zle is running or not. I tried for hours to try to search the oh-my-zsh repository, but haven't found the command that activates push-line.
What do I need to do to get Ctrl+Q working? What is it that oh-my-zsh does that I need to put in my own zshrc?
Although I've never used the push-line feature, don't know what it does, and am afraid to even try to find out what "oh my zsh" means, any use of Ctrl+Q is likely to require unbinding it from the tty START function.
STOP (freeze output to the terminal) is normally Ctrl+S and START (unfreeze) is normally Ctrl+Q. To remove those special characters,
stty start '^-' stop '^-'
One can also do
unsetopt flow_control
See: http://www.cs.elte.hu/zsh-manual/zsh_16.html

ways to run external shell commands in sbt

How can I run external shell commands once I am in sbt interactive shell?
That is, after I type sbt and see the prompt showing up, how can I do things like ls, or cd etc.? There should be a way to do this, correct?
Thank you.
On http://www.scala-sbt.org/release/docs/Community/Community-Plugins.html is a list of SBT plugins.
A plugin for your purpose can be https://github.com/steppenwells/sbt-sh .

Resources