All Questions
Tagged with bash windows-10
219
questions
1
vote
0
answers
34
views
Set background colour in Windows Terminal, with git bash ANSI escape OSC 11 doesn't work
How do I get git bash to set terminal background colour using OSC Ansi Escape sequences?
printf %b '\e]11;rgb:30/00/00\a'
It works when I do it from WSL bash and for some servers when I ssh to them ...
0
votes
1
answer
78
views
Why executing 'bash' in the terminal opens wsl on Windows 10?
When I run the 'bash' command in the terminal, my console automatically switches to the 'wsl' mode. Why is this happening and how do I stop this behavior? It causes problems when I run other scripts, ...
0
votes
0
answers
1k
views
Bash - node: command not found when being run in a shell script
When trying to run a node command from a .sh script I get the error node: command not found, however I can see that node is installed, running node -v shows me my current version, what could be the ...
-1
votes
1
answer
55
views
tsunami windows 10 curl java home environment variable error
I am setting up tsunami on Windows 10. I am following the tutorial (https://github.com/google/tsunami-security-scanner). When I run the bash command, I get the following error:
ERROR: JAVA_HOME is not ...
0
votes
1
answer
313
views
Tortoise Git not using id_rsa
I use Tortoise Git on Windows 10. When I push it asks me password although I do have %userprofile%\.ssh\id_rsa file. I also tried to use git from command line (Git bash). If I google I get instructed ...
2
votes
2
answers
6k
views
In Windows Terminal, how do I add bash as one of the shell options?
I'm using Windows 10 and just downloaded and installed the latest version of Windows Terminal. I would like to use a bash shell within the terminal but when I open the settings, I don't see bash as ...
1
vote
1
answer
140
views
script to restart process on Debian WSL
I have amule-daemon installed on Debian 11 WSL.
Process amuleweb crashes every now and then so I need to restart it.
I'm trying to automate this with the following bash script:
#!/bin/bash
if [[ $(...
0
votes
1
answer
472
views
windows 10 tries to run shell scripts from "C:\Windows\System32" directory
I have some bash scripts that I wanted to use like batch files in windows 10 by double clicking and let it to finish the job. Problem is it starts the script from windows system (C:\Windows\System32) ...
1
vote
0
answers
895
views
process exited with code 1 (0x00000001) after Git update 2.36.1 on Windows 10
After I tried to update my Git version to 2.36.1, on my Windows 10 machine I've been getting this error in the Windows terminal: [process exited with code 1 (0x00000001)] I have tried to check for ...
3
votes
1
answer
6k
views
How to parse each line of a text file as an argument to command prompt in Windows?
I'm looking to write a script for Windows Command Prompt that takes a .txt (filename) as an argument, reads the file line by line, and passes each line to a command. If my FILE.txt looks like:
LINE1
...
1
vote
0
answers
852
views
bash: patch.exe: Permission denied; how to turn off security regarding 'patch' in program name in windows 10?
I stumbled upon a problem patching a .diff file using patch. I use bash under windows 10 and the result of of this operation is as follows:
$ patch < patch.diff
bash: /cygdrive/c/cygwin/bin/patch: ...
0
votes
1
answer
62
views
Refining a simple delete-item one-liner
so I was wanting to upgrade my delete-item one-liner. I want to breakup the main filepath(\HQDEVAPP004\C$\LoneStar\ProcessorHandlers\Test) into 2 variables that are defined at the top of the script. ...
1
vote
2
answers
8k
views
Open git bash in current directory
Previously when I was in a directory, I clicked 'git bash here' and it would open in that directory. Now it opens my home directory. How can I fix this?
3
votes
1
answer
954
views
How can I play a sound when my Git for Windows Bash command prompt is ready?
I use the shell Git for Windows Bash on Windows 10 and I want to play a sound whenever my command prompt is ready. This acoustic feedback should help me to get (back) to my command line when my ...
4
votes
2
answers
1k
views
Git subtree installation broken on a Windows 2010 Pro install
Something I'm unable to track down the source of my broken my Git “subtree” command. I'm running Windows 2010 Pro.
Here the error message, instead of display the help info:
$ git subtree
It looks like ...