The prompt is what asks a user for their interactive input

learn more… | top users | synonyms

0
votes
1answer
9 views

How to leave the execute prompt in zsh

In a zsh, maybe I pressed Alt+X by mistake, but now I'm stuck and this execute: _ prompt won't leave. Pressing Ctrl+C do nothing, if I press Enter it tries to complete what I typed Pressing Enter ...
0
votes
1answer
17 views

Why redirection operators from windows prompt create text ignoring line break? [duplicate]

I tried to output to a text file using redirection operators > and >> from a java class but it ignores line feed \n from java when the .txt file is opened with the Notepad from windows 10. ...
1
vote
2answers
30 views

How to hide commands in the prompt of Windows 10 from a batch file?

I want to hide the commands in the prompt that opened from a batch file. Example: This is how it normally is: This is how I want it to be: It would be good as well if there was a way of output ...
1
vote
0answers
24 views

Set CMD Prompt to always be the current directory name in Windows XP? [duplicate]

I would like my command prompt to display just the directory name I am currently in, not the full path. If I am working in C:\Mystuff\Junk\ I would like the command prompt to display: Junk> If I ...
0
votes
1answer
50 views

git commit hash in zsh prompt

I'd like to see the current commit hash (just the first 8 or so characters) in my zsh prompt. I have this so far: https://github.com/calebmeyer/cpm-zsh-theme/blob/master/cpm.zsh-theme#L3 ...
0
votes
0answers
28 views

Weird output when setting zsh prompt

I am setting my zsh prompt to be % by setting the BULLETTRAIN_PROMPT_CHAR variable in my .zshrc file but when it starts up the prompt is %f. I have tried \% and it still does the same thing. Note I am ...
0
votes
1answer
34 views

bash: show names of background jobs in the bash prompt

It would be cool if the bash prompt can be used a a mini task bar. Can the bash prompt (PS1) show the names of the jobs listed in the jobs command?
0
votes
1answer
100 views

In Windows cmd batch file how to ignore carriage return

I have a Win 7 bat file that prompts user to enter a number, then it passes that number as an argument to a tcl script. An optical barcode scanner is used to provide the number, but then I want user ...
1
vote
1answer
47 views

ZSH: change prompt just before command is run

I would like to have a two-line prompt in zsh, but collapse it to a very small one just after pressing ENTER, so that it doesn't show up in the terminal scroll history. After typing two commands, the ...
0
votes
0answers
25 views

How to set JAVA PATH in system properties

How to fix “not recognized as an internal or external command” in Windows?
0
votes
1answer
106 views

ZSH in iTerm2: Why my prompt can only use 8 colors?

I am trying to set a color prompt in ZSH ($TERM=xterm-256color), but it can only get 8 colors out: Only the bright version of the colors. This is only the case for prompt, while the other applications ...
1
vote
1answer
13 views

Setting PS1 from command output

I'm attempting to set my bash prompt string from a gsettings value like below. PS1=$(gsettings get org.gnome.finalterm status-bar-left) gsettings get org.gnome.finalterm status-bar-left outputs ...
0
votes
1answer
56 views

How to use source within a bash script to change the terminal prompt?

I need to be able to use a script in ~/.local/bin/ (which is part of $PATH) to quickly change the prompt. The desired result can achieved by running the following in a console: echo PS1='$\ ' > ...
0
votes
1answer
25 views

Moving specific files into a folder based on directory using Command Prompt

I have a series of about 100 folders called E101,E102....E200. Within each of these folders is a file called calquip.docx and calquon.docx I would like to move calquip.docx and calquon.docx into a ...
1
vote
1answer
418 views

Multiline RPROMPT in zsh

I know you can define multiline prompts in zsh: PROMPT=' test → ' But I was wondering, why can't you define multiline right prompts? I tried: RPROMPT=' test still test ' but nothing shows up. Is ...
0
votes
1answer
62 views

How to run a .exe file in command prompt [duplicate]

I don't know much about command prompt, or how it is used, but I want to get a code to access a program of mine and I wants me to open a .exe file with command prompt and input my ID so I can get the ...
0
votes
0answers
48 views

How to set the command (cmd) prompt colors

Pretty easy to do in Bash, but, for the life of me, I cannot find a way to change the prompt (and only the prompt) colors in Windows 7's cmd window. Note: the solution suggested in the comments seems ...
2
votes
1answer
47 views

Output each commands results into a separate file

I have got the following script which executes a separate step one after the other: @echo off set /p guid=Please enter GUID: start /wait Drop\Debug\Ylp.Web.CmsImportWebJob.exe /test map %guid% start ...
1
vote
1answer
58 views

Batch script to execute jobs one after the other using a GUID as an input argument

I would like to create a batch file which I can reuse with different GUID input parameters. Normally, I execute a file 4 times, one after the other with varying input parameters like so: ...
0
votes
0answers
333 views

Windows 10 Start Menu becomes unresponsive with a prompt

When using the program on its own, I have no issues. Once I have a prompt to enter data pops up I can still open things on my desktop or any application I have pinned. Only the Start menu itself, ...
1
vote
1answer
424 views

How do I get fish shell prompt to show the hostname?

I'm attempting to make my Fish prompt look like the old Gentoo shell did. user@hostname ~ % where the user@hostname is green, and the $PWD and symbol were blue. Right now it only shows: user@ ~ %, ...
0
votes
2answers
148 views

Pinging My phone [closed]

I have recently lost my phone and I really need to find it I was searching on how to ping it for its location but I still haven't found any useful information. Is it possible I could ping it from ...
0
votes
1answer
62 views

Prompt command starting in the wrong folder [duplicate]

I am currently facing an issue I do not know how to track. I put the start-in option of a prompt command to : C:\Users\XXX\Downloads Then apply and finally when I open the prompt command, it ...
1
vote
2answers
117 views

How do I remove the extra bash-3.2$ from shell-mode?

Summary The first line of shell-mode has an extra bash-3.2$ prompt before my custom dotfiles (master)$ prompt. I tried writing PROMPT_COMMAND='' in my ~/.bashrc according to an earlier Stack ...
5
votes
3answers
1k views

How to redirect output of a command to a file when the command will prompt user inputs?

I have a command which will prompt user for some inputs and then output the result to the terminal. I typed the command like below to redirect the output to a file: $the_command > abc.txt But it ...
1
vote
1answer
186 views

How to make zsh always show environment variable name instead of the path?

I have an environment variable set to my projects folder like this: PROJ=$HOME/projects When I want to open a project folder i just type PROJ/project_name and the shell opens the directory and my ...
1
vote
1answer
39 views

$status in Fish prompt always prints 0

I tried to add $status to my prompt in the fish shell but it always prints 0. This question was asked on irc a while back and i'm surprised there wasn't a answer here so i thought i'd post it here ...
0
votes
1answer
394 views

command to pipe in password when prompted by command prompt

runas /profile /user:administrator "cmd /c net user /add [username] [password]". I used the above command to create a new user using administrator permissions. After I enter this command, it prompts ...
0
votes
1answer
26 views

My bash_prompt cannot find a shell script

This is a function I added to my .bash_prompt function look_for_autorun() { echo "checking file" FILE="autorun.sh" if [ -x $FILE ] then echo "File '$FILE' Exists" else ...
0
votes
1answer
47 views

how to migrate bash prompt \#/\! to zsh

My bash prompt currently starts with the following variables : \#/\! which means \# The command number of this command. \! The history number of this command. So \# is specific to each ...
1
vote
1answer
494 views

Interactive Script; Prompt within a loop

How do I prompt a user for input from a shell script (ksh) within a loop in which a file is read? The script reads in a file. In each loop pass the user will be asked if he wants to cancel or not? ...
1
vote
0answers
213 views

Alternative ways of passing PS1 env variable into Ubuntu for SSH session

I know that there are twenty thousand answers, none of them worked as expected, I'm more surprised than you are, so please consider reading the story first. I'm trying to achieve what appears to be a ...
4
votes
1answer
218 views

Logging into hotel Wi-Fi changes bash prompt? [duplicate]

Since clicking on the “I agree” pop-up when logging into a hotel Wi-Fi, my bash prompt contains some kind of hash in it. The format is now: <strange hash>:<working dir> <username> ...
1
vote
1answer
4k views

Kill Process Listening on Port 8080

I perform the following on Win7 32-Bit in the command prompt: netstat -ano | findstr 8080 it returns with: TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1896 how might I ...
0
votes
2answers
3k views

How to turn off asking for administrative rights every time I want to rename/copy file from one location to another in Windows 8.1 64bit

I installed fresh Windows 8.1 Professional 64-bit. When I copy file to another location, for instance from C:\ drive to external drive I get prompt where I have to click Continue to grant ...
0
votes
1answer
58 views

Enable Logoff Prompt

As a new user to Remote Desktop, I mistakenly told the warning prompt about closing the session that I didn't want to be warned again. Since I can't seem to remember to logoff the CORRECT way, I ...
1
vote
0answers
170 views

Windows 8.1 mark an account as a Trusted UAC Account

From what I understand in windows 8 if you want to use/enable UAC you get a prompt unless you hack an icon or use the local SYSTEM account. I am fine with this, however is there a way to make a ...
1
vote
2answers
51 views

Search-and-go in Windows CMD

I know that for file search on Windows CMD one can use the following command: dir /S /P "PATH/FILENAME" Is there an easy way to go straight to the result directory. For example, the requested file ...
-3
votes
1answer
185 views

Access c:\“ my path ” in windows command prompt

I want to access a path in C drive when I open the command prompt I have c:\user\myname where is I want to access c:\ so that I can access any paht I want in C
2
votes
0answers
426 views

My custom fish shell prompt keeps resetting every reboot

I switched to fish shell a month ago and I'm quite pleased with it. But recently, my custom prompt keeps resetting to the default prompt every time I turn on my PC. When opening the terminal, I'm ...
1
vote
2answers
47 views

Bash prompt coloring not appearing correctly

I had a functioning Bash prompt colored how I wanted it, but after reinstalling the background is gray rather than black like this setting should make it. My PS1 is \[\e[33;40m\]\T ...
3
votes
1answer
13k views

Schedule a task with admin privileges without a user prompt in windows 7

In windows 7, I'd like to schedule a program to be run with administrative privileges, without having the user need to respond to a prompt (which requests elevated privileges) every time the scheduled ...
1
vote
0answers
426 views

Save PDF automatically on exit in Adobe Reader

Adobe Reader prompts me to save on exit. This is an operation I do several times a day every day, so if I Adobe Reader could just save my changes without asking me (that is, comments), that would be ...
0
votes
0answers
81 views

Bash Prompt : incorrect time displayed

Using the following prompt: export PS1="\n[$(date +%d-%m-%Y)] \u@\h [\t]\n{\w} [\!] # " and with TZ to my timezone : echo $TZ = America/Montreal The time on the prompt is OK at the start of a ...
0
votes
1answer
158 views

What 016 017 in bash prompt, how can I make it correct in Terminal

I saw a beautiful bash prompt here PS1="\n\[\e[30;1m\]\[\016\]l\[\017\](\[\e[34;1m\]\u@\h\[\e[30;1m\])-(\[\e[34;1m\]\j\[\e[30;1m\])-(\[\e[34;1m\]\@ ...
0
votes
0answers
21 views

Customized bash prompt (PS1) issues when text moving to next line and back.(word wrapping) [duplicate]

I'm using a customized prompt which includes and output of a "case" script and also colors it. When the text is colored I'm having line wrapping issues, when I remove the color - the issue is gone. ...
0
votes
2answers
72 views

Making PS1 prompt refreshable

I want my prompt to be changed based on an output of a certain command. and based on the command result to add a color. example: run the command: cphaprob stat | grep local | awk '{ print $NF }'` ...
0
votes
0answers
147 views

how to list all CNAMEs of the current server in the bash prompt?

I have servers with a generic names (e.g. eu1.example.com) which has a set of useful CNAME (e.g. mail.example.com, rocket.example.com). How can I list the CNAME in a bash prompt, to go from ...
0
votes
1answer
200 views

How to change bash prompt?

I'd like to change my bash prompt when I login. But even after I change .bashrc and re-login, it still prompts the old one. What goes wrong please? I want to get [\u@\h \W]\$ but I get \s-\v\$ for ...
0
votes
2answers
181 views

Importance of default starting folder in CMD Prompt

Every time I run the Command Prompt on my machine (Windows 7 Professional, 64bit), the default message tells me on which folder my commands are active, as the CLI has "sent" me there: the ...