All Questions
55 questions
1
vote
0
answers
102
views
Shell: Customizing the "Display all N possibilities? (y or n)" message
I already know that double-pressing the Tab key on Bash terminal will enlist all files and folders in the current working directory or, when appropriate, show Linux executables that I can run. I want ...
1
vote
0
answers
325
views
Bash terminal lagging one input behind
After a recent update, I've noticed that working on any terminal for more than a few minutes causes a delay between inputting a keypress and seeing it reflected on the screen.
Specifically, if I were ...
0
votes
1
answer
183
views
inotifywait not listening to DELETE event
I'm using the following bash script to test inotifywait.
while true; do
inotifywait -r -e modify,create,delete "$DIRECTORY_TO_WATCH"
done
inotifywait is listening to created files:
/...
3
votes
3
answers
908
views
Alternatives to file polling?
In the following code, I have to poll $tmp_input to continue executing the code because wezterm cli send-text is asynchronous. This makes sure that $tmp_input is ready.
tmp_input=$(mktemp ./tmp_input....
1
vote
2
answers
5k
views
How to run the command "sudo sh /path/to/script.sh" by double clicking?
I have a question from this thread How to run a bash script by double clicking by entering the path in sudoers?. Since it was explained to me that it is unsafe to grant sudo privileges to the script....
0
votes
2
answers
1k
views
Confused about bash prompt meaning
I found out that in bash, the $PS1 variable can be modified to change the prompt. The problem is that I'm having some trouble trying to understand the long string of codes that I was given.
I did:
...
0
votes
1
answer
272
views
How to source from stdout for both Linux and MacOS?
On Linux I can do:
source <(cat .env | grep ANDROID_GRADLE_TASK)
But on MacOS, this doesn't do anything (no error, and no source)
I have tried to replace -di with --decode --input, it didn't help.
...
0
votes
1
answer
629
views
Warp terminal launch through skhd
Did anyone get [Warp Terminal][1] to work with [skhd][2]?
I use to use Kitty with
cmd - return : /Applications/kitty.app/Contents/MacOS/kitty --single-instance -d ~
I'm trying to get launch it with:
...
7
votes
2
answers
4k
views
What exactly handles the Ctrl+X shortcut family (e.g. Ctrl+X Ctrl+E) in Linux terminals?
I've seen a lot of online resources mention several compound shortcuts beginning with Ctrl+X :
Ctrlx Ctrle : Edits the current line in the $EDITOR program, or vi
if undefined.
Ctrlx Ctrlr : Read in ...
0
votes
2
answers
858
views
Run command after file manager (Thunar) window is closed
I am writing a simple script where I need to open a directory dirname with Thunar and delete that directory after closing the Thunar window.
I was expecting something like
thunar $dirname && ...
0
votes
0
answers
57
views
How to NOT show the tags?
wadewayne@Cheetah:~$ man sdcv
wadewayne@Cheetah:~$ sdcv GNU
Found 28 items, similar to GNU.
-->McGraw-Hill Dictionary of Science and Technology
-->gnu
<BR><BR><b>VERTEBRATE ...
2
votes
2
answers
4k
views
Command/script to start a terminal, enter text but don't execute (wait for text to be written, pasted, etc.)
I often
write commands in the terminal that I don't know by heart, and then
paste some path or file name from the clipboard, before pressing Enter.
I thought that it would be fun to do the first ...
0
votes
2
answers
49
views
Is there a way to interact with a shell but from an app or separate program?
I am trying to find a way to both receive the output of a shell and then return output, but from a different front end interface? I am trying to incorporate the Linux terminal into a potential ...
1
vote
1
answer
67
views
List given folder everywhere it exists
How to get a listing of all occurences of the folder foo (or node_modules in my case) in my home folder, like this:
~/a/foo
~/b/d/foo
~/b/d/e/foo
...
My goal is to manually remove all unnecessary ...
1
vote
1
answer
249
views
Making the first word I type on terminal of different color from the others
New here. I was trying to make the first word I type on the terminal of a different color from the others. I have looked into the .bashrc file and /etc/inputrc files. I know that I can make use of the ...