Skip to main content

All Questions

Tagged with
4 votes
1 answer
553 views

Interactive ZSH's command prompt to execute a ZLE command

Is there any way to interactively run a ZLE command on the current line? I am looking for a similar way to TMUX's command-prompt, which default keybinding is prefix : were you can run a TMUX command ...
Nicolas LIENART's user avatar
0 votes
3 answers
2k views

Script to use sudo in a terminal, gksudo otherwise?

I'd like to write a script that does an administration task, and I would like to be able to run it either from a terminal or not. If it runs in a terminal, even a graphical one, I'd like it to ask for ...
Ryan C. Thompson's user avatar