Questions tagged [prompt]

The prompt is what asks a user for their interactive input

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

How to pad a zero before the time prompt in zsh?

I was trying to pad a zero for single digit hour in zsh prompt currently I am sourcing ~/.bashrc in ~/.zshrc like the following source ~/.bashrc and the sourced ~/.bashrc file looks like export ...
0
votes
0answers
17 views

Adobe Acrobat DC is stuck in a loop at 'Save As' prompt

It is updated to Adobe Acrobat DC. So after I fill the PDF in with the Fill & Sign function. I press CTRL+S, nothing happens. So I go to the File Menu and click the Save button, nothing still ...
2
votes
1answer
61 views

Recalling last command inserts spurious character at the beginning (in Zsh)

The interactions are so complex that I don't know exactly what I'm looking for, but maybe you can still help. Sometimes, generally after an error (return code > 0), when recalling some last command, ...
0
votes
0answers
23 views

How do I get ZSH to use the colors of my terminal?

I'm in the process of switching over from bash to zsh. My old bash prompt looked something like this: PROMPT_COMMAND=ps1_command ps1_command() { ext="$?" PS1="" if [ "$ext" != 0 ]; then ...
0
votes
1answer
57 views

Getting rid of “command not found…”

When I mistype command in terminal I got this error: bash: XX: command not found... After that, I have to wait or use keyboard interrupt before I can use prompt again. Sometimes shell offers me to ...
0
votes
0answers
43 views

ssh fails between source and destination Linux servers

source Linux 10.9.9.11 -> destination Linux 10.0.9.99 I'm using custom ssh keys "/app/ssh_keys/id_rsa" Below are the permissions and public key (/app/ssh_keys/id_rsa.pub) entry on the destination ...
1
vote
1answer
955 views

Is there a way to make Windows Powershell 6 my default terminal?

I downloaded pwsh 6, or pwsh core, and wanted to make it default. Currently whenever I use the shorcut for a CMD, I already get the old pwsh, but I wanted to use the new one instead. Is there anyway ...
0
votes
0answers
137 views

after ssh connecting to ubuntu server, cannot do anything

I was working on a server I have access to for a school project, which I am not an admin of it, and everything was working fine until recently, when this suddenly began to happen after I logged in ...
0
votes
1answer
28 views

Getting git in the zsh prompt

I have already asked this on Unix & Linux, but all I got was views. So, I want to add git to my custom prompt. What I want it to do is: Show the name of the branch Change color of the name of ...
4
votes
1answer
89 views

What's the easiest way to prepend the current time to the fish prompt?

I'd like to see the current time in my fish prompt so that I can always see for example when I started the last command. I don't want to install extensions.
1
vote
1answer
78 views

ssh login causes repeating characters in my zsh

I am on a Mac using iTerm2 and zsh v5.7.1. When I login from my local computer to the remote computer using 'ssh', most of the characters are repeated at the prompt as I type. Clearing the line with ...
0
votes
1answer
84 views

How to get the length of a prompt?

Is there a way that I can determine the length of a prompt? Is there a way that I can look at the PS1 variable and get the length from it and repeat characters for the same length? I am trying to ...
0
votes
0answers
12 views

iTerm2 unknown terminal prompt - security issue?

I just opened up iTerm2 and noticed this odd prompt (HUAWEI_nova_34...) and have no idea where it came from. Has my computers security been comprised? iTerm2 screenshot
0
votes
1answer
63 views

Update Terminal Prompt Hostname “On The Fly” without reboot

I am not asking how to change a hostname and I am not asking how to update a terminal prompt. What I am asking is how to update a terminal prompt from a bash script so that when the user exits the ...
1
vote
1answer
46 views

zsh-git-prompt customization of path

source ~/zsh-git-prompt/zshrc.sh PROMPT='%B%m%~%b$(git_super_status) %# ' I have the default configuration for zsh-git-prompt as shown above In my prompt it outputs: cmuench-air /Applications/MAMP/...
1
vote
0answers
79 views

Terminal on MacOS Mojave: Why is the prompt misbehaving when the window size is too small and how do I fix it?

I'm on macOS Mojave 10.14.4 using GNU bash, version 5.0.7(1). Basically my issue is that when the terminal window is too narrow to contain my full PS1 prompt in one line, it gets corrupted and starts ...
0
votes
2answers
35 views

PS1 Customization

Just a quick one. Trying to modify my PS1 to show just a specific number of chracters. Currently : user@domain.co.uk@linuxhostname This is because I have just intergrated some systems in my ...
1
vote
1answer
56 views

What are environments for in Anaconda prompt?

What do environments do in Anaconda Prompt? What happens when I create/activate a new environment? And why is it useful?
1
vote
1answer
87 views

mysql 5.7.27 command line prompt shows un-escaped characters

I'm using mysql 5.7.27 in CentOS 7, and I want a colorful prompt in command line. I found a solution here. But it doesn't work for my environment. alias penguins=$(echo -e 'mysql --prompt="\x1B[31m\\...
0
votes
1answer
57 views

What is the windows cmd prompt command to -> List 'n' file names in console from a directory having 100 files

I have a directory having 100 .txt files. I need windows command ( Unix equivalent : head cmd) to list, say only 10 files in my console
0
votes
0answers
6 views

redirect logs without capturing the interactive prompt

I launch a command which prints many messages (errors, warnings, etc.) before dropping me into an interactive command prompt: $ verbose_tool launching foo (error) blabla (warning) blablabla ...lots ...
3
votes
1answer
498 views

Move vi mode string to end of bash prompt

I use vi editing mode in bash. I have "show-mode-in-prompt" set to "on" in ~/.inputrc. show-mode-in-prompt (Off) If set to On, add a string to the beginning of the prompt indicating the ...
1
vote
0answers
713 views

Run Runas without password prompt

First of all, I'm sorry to register a new question when there are a few about the same subject, but I couldn't find a specific answer... I'm trying to create a batch file to be used by a regular user....
0
votes
1answer
10 views

How to not return immediately to shell when VSCode is executed from shell

When I open a file in VSCode form Bash by typing code ${FilePath} it returns immediately i.e. I can start typing next command before closing the file. If I do the samething with other editors like ...
0
votes
1answer
250 views

bash prompt: show current directory at end of line

How to make my bash prompt display something at the end of the line (with the cursor positioned as usual at the beginning of the same line)? Specifically I want to display an abbreviated single ...
1
vote
1answer
59 views

zsh Prompt expansion: Why does %b cancel background colour?

I'm running Zsh 5.2 on MacOS, running in Terminal.app with TERM set to xterm-256color. When styling the PROMPT, I found that in this Zsh version, a %b cancels the effect of a previous %K. Consider ...
0
votes
1answer
59 views

Why does Krusader add a ^@ to all Useractions when running in the embedded terminal only?

It looks like the Krusader File Manager appends a ^@ character (which is CTRL-@, that is a null char) every time it runs a Useraction but only if it's run in the embedded terminal. This then leads ...
-1
votes
1answer
23 views

How do I stop the result of %@EXEC[] being included in my prompt?

Per commentary to https://retrocomputing.stackexchange.com/a/9623/1932: I have tried %@EXEC[] to run a BTM from my prompt in 4DOS/4OS2/4NT/Take Command/TCC, but the return value of the BTM ends up in ...
1
vote
1answer
235 views

Prompt for Input Inside For Loop

I have a directory that can contain over a hundred files. I want to create a loop that will go through each file in that directory and ask the user if they want to process the next file or exit the ...
0
votes
0answers
269 views

How can I display path on right side of terminal screen instead of before prompt?

I'd like to show the current working directory on the right side of screen in bash terminal and no path before the prompt where it is shown now. Ubuntu 18.04 LTS
2
votes
0answers
513 views

Avoiding the `npm login` (`npm adduser') email prompt in npm & jFrog artifactory

When I do npm login (alias of npm adduser) I ALWAYS get prompted for my email address. Username: ... Password: ... Email: (this IS public) ... This is obnoxious. I've done npm config -g set email .....
0
votes
1answer
58 views

Watch terminal for a particular prompt and automatically enter the response

I am using ZSH and I am wondering whether there is a way of watching the stdout for a particular prompt and then automatically input the response? In particular I would like to automatically populate ...
2
votes
2answers
705 views

Powerline and Fish: How can I remove the large whitespace between the shell prompt and cursor?

I recently started using Arch Linux and just installed Powerline and Fish (version 3.0.0) last week. In my terminal, which is Termite (version 14), there's a large (horizontal) space between the shell ...
2
votes
1answer
82 views

What's wrong with this PS1-Prompt?

I was styling my PS1-Prompt to resemble the iPython-Prompt as: PS1FIRSTLINE="\[\n\][\t] \[\e[1m\e[38;5;196m\]\u@\H\[\e[0m\] in \[\e[1m\e[38;5;196m\]\w\[\e[0m" PS1SECONDLINE="\n\e[92m\]In [\[\e[1m\]\#\...
0
votes
0answers
78 views

Bash Output-Prompt

So i'm customizing my PS1-Bash-Prompt at the moment and found the iPython way of displaying in- and output pretty neat. As you can see, i have my PS1-Prompt configured to look (almost) like the ...
1
vote
0answers
71 views

Why does my PS1 environment variable keep getting overwritten?

I'm trying to customize the prompt by adding a line such as export PS1='%d' to my .zshrc file. However the environment variable keeps getting overwritten. In fact I can do the following at the ...
1
vote
1answer
132 views

How to stop Dell notification on my computer?

This annoying message comes up all the time. Even when I press "Do not remind me", it keeps coming. How can I get rid of it for good?
1
vote
0answers
116 views

How to redirect the output of a running process to a log file?

When running a long running task in a command prompt, it's possible to redirect the output to a log file (fe for storage or later analysis). However, I started a few long running tasks this evening ...
0
votes
1answer
314 views

cmder: How to add time taken since last command

as discussed already here on SU there is a way to output the current date and time in cmder. In some videos on Youtube i saw some people installing something or get node.js ready or any other command ...
1
vote
2answers
602 views

linux text editor with no prompt autosave and restore? [closed]

I am looking for some way to take ad hoc notes on linux where I don't need to explicitly save those notes. On windows, I use Notepad++ that has a feature where new, untitled documents are ...
1
vote
1answer
137 views

%2 in batch file is ignored on execution in command prompt

I have an image file named first%20second.png I have a test.bat file that renames images. It looks like this: Timeout 3 Copy "C:\first%20second.png" "C:\sub\first%20second.png" Timeout 3 When the ...
0
votes
2answers
282 views

Outlook BCC prompt VBA doesn't automatically run

I'm still pretty new to VBA (so sorry if this is a dumb question) though I am already coding small applications a few years for like buttons in excel or something. But this one has never ben clear to ...
3
votes
1answer
371 views

Any way to send desktop notification that will prompt user to confirm yes-no?

I am on Fedora 27, and have a system-on delayed (45min delay) anacrondaily job that backs up my laptop drive on a regular basis. The anacron is because my system is not always on. The problem is that ...
2
votes
2answers
4k views

How to find the build / UBR / kernel version of Windows 10 using command-line (cmd)

I would like to know the basic commands in prompt windows. Therefore, I want to begin by knowing the command that return details of my operating system like kernel version / build and UBR (Update ...
0
votes
0answers
600 views

Prompt not changing in zsh

I am setting up a new MacBook Pro with iTerm2 and copying over my old command line configuration from a previous Pro. I have powerline-shell installed, as well as zsh with oh-my-zsh. I have the code ...
1
vote
1answer
209 views

Why has my Cygwin prompt stopped being bold? (or rather started being “dim”…!)

This is not the same as this. In my case I have a simple Cygwin installation. Up to now the prompt has been in a bold green colour (my name) followed by a bold yellow colour (location). The $ is ...
4
votes
1answer
570 views

Modifying OpenSSH default Windows prompt

I've just installed OpenSSH on Windows OS based on the following guide. https://winscp.net/eng/docs/guide_windows_openssh_server This is the standard prompt Windows prompt userName@mydomain.net@...
1
vote
0answers
154 views

Prompt to CC before sending

First post. I would like to make a function in excel that everytime I press send prompts me to cc an email address from a specified list. For example. In VBA i have specified recipients (i.e. Mary@...
3
votes
2answers
275 views

Shell sometimes fails to output ESC ^[ character before escape sequence

Occasionally, when pressing an arrow key (usually up) inside of a shell, the terminal or shell fails to output an ESC character before the escape sequence, so if I press the up arrow to try and see ...
4
votes
0answers
296 views

How I get my command prompt to show just the name of the folder I'm in (not the whole path))

In a command prompt window (terminal), how can I get my prompt to be just the current folder? e.g. prompt $p $g gives: C:\Users\Robin > But I want it to just show: Robin > UPDATE: As @...

1
2 3 4 5