Skip to main content

All Questions

Tagged with
0 votes
1 answer
187 views

Bash/Zsh: Catching all commands that start with a `/`

Is there a way to get this example catchall function to be called whenever any command starts with the / character in an interactive shell (instead of searching in $PATH and executing something else, ...
Aaron Esau's user avatar
1 vote
1 answer
3k views

Can't type anymore on Git bash after returning from ssh -tt

I wanted to execute a command in a remote shell in its interactive environment, so as to make it load my remote .bash_profile there first before executing the command. This works great: echo "...
laggingreflex's user avatar
0 votes
1 answer
73 views

How to reference previous parameter in interactive bash shell?

I'm trying to do something like: mv doc1 $1.html #equivalent to mv doc1 doc1.html but the problem here is that, because I'm in an interactive shell, $1 refers to the first parameter passed to "bash",...
Nick Chandoke's user avatar
9 votes
2 answers
19k views

Open new konsole from script, executing command and becoming interactive on conclusion

I want to be able to get a script (ran at startup) to open up a konsole terminal. When it opens it is to do some persistent things (like change directory and source bashrc) and run a long running ...
Hashbrown's user avatar
  • 3,079
2 votes
1 answer
589 views

Suppress (or quiet) the output of bash: "Hit any key to close this window..."

Typically when I invoke an GUI application in vim, I get a command prompt that awaits for my response: shell returned 1 Hit any key to close this window... How can I not make this prompt to show up, ...
Forethinker's user avatar