Questions tagged [prompt]

The prompt is what asks a user for their interactive input

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

FISH - How to hide hostname/computer from prompt?

For context, I am using FISH 3.1.0. I looked in fish_config, but none of the prompt options just remove the hostname/computer while keeping the rest the same. Is there a way to keep most of the ...
user avatar
0 votes
1 answer
43 views

In Outlook, how to get a prompt when you've been added to a meeting or when a meetings time has changed?

I've had a few bad experiences where I missed a meeting because it was scheduled during the day and I was not at my computer when the outlook 15 minute prior to meeting prompt was displayed. I usually ...
user avatar
0 votes
0 answers
49 views

Toolkit is not fiving the password prompt for One plus Seagate password protected external drive

I have a laptop and I used to manually copy files to an external disk via copy-paste. That disk is password protected and the seagate toolkit would ask for a password. This suddenly no longer works. I ...
user avatar
  • 1
1 vote
1 answer
90 views

tmux changes shell prompt

Ubuntu 20.04 (running inside VirtualBox, if that's important.) tmux 3.0a (installed via apt) fish 3.4 (and earlier 3.3) starship.rs 1.1.1 Font: FiraCode Mono I have configured my prompt to look as ...
user avatar
  • 113
0 votes
0 answers
98 views

In Iterm2, can I have a new window start the prompt and cursor at the bottom of the window?

I frequently clear my Iterm2 window (⌘-K) or open a new tab before starting a long-running task. I would like the new tab to have the command prompt and cursor at the bottom of the window, not the top....
user avatar
0 votes
2 answers
889 views

How to disable OpenSC YubiKey password prompt in Firefox

I have a YubiKey nano plugged into a 2019 MacBook Pro. When I visit some websites (one public example being Gmail), Firefox brings up a password dialog prompting me to enter the YubiKey password. ...
user avatar
0 votes
2 answers
184 views

Ansi escape code chart for CMD prompt

How to find the command prompt ANSI escape code for the right-angle-quote »? (» in html) I'd like to use this symbol for my CMD prompt shell instead of the default angle bracket >* While ...
user avatar
  • 4,835
1 vote
0 answers
68 views

Right And Left Side Prompt In Bash

I want a prompt on the left side of the terminal and opposite it another prompt on the right side of the terminal...so here is what I have so far and it works partially but the right side of the ...
user avatar
0 votes
1 answer
53 views

Right-aligned PS1 and PS1 equals itself?

read some code somewhere about right alignment of text and have some questions: PS1="`printf "%${COLUMNS}s\n" "${TEXT}"`$PS1" what are the backticks doing? why ...
user avatar
0 votes
2 answers
34 views

PS1R not aligning correctly

I am writing a script to construct my bash prompt but the right side prompt is printing an extra character (one that belongs at the beginning of the left side of the prompt) at the very end of the ...
user avatar
1 vote
1 answer
86 views

Bash and True Color

I am trying to construct a simple bash prompt with true colors and have tried everything with this code as follows--don't see what is the problem and need info from you scripting gurus out there :) #...
user avatar
1 vote
1 answer
74 views

Shell appending unknown integer to hostname in prompt (zsh) on mac

I recently customized the prompt in my terminal to be more like the one from parrot os, which I really like. I have read over the documentation many times on how to use the markers/variables in the ...
user avatar
0 votes
1 answer
71 views

What does the WinDbg command prompt indicate?

I'm using WinDbg and am wondering what the WinDbg command prompt indicates. In my case, the command prompt reads 2: kd> I assume the kd means I'm debugging in kernel-mode (as opposed to user-mode,...
user avatar
25 votes
3 answers
8k views

CMD prompt window pops up and instantly disappears periodically

Windows 10 - Every 10 minutes or so, a command line window flashes on my computer. I'm afraid I may have been infected by something. I've been staring at the Task Manager (and process explorer) for ...
user avatar
  • 571
1 vote
1 answer
257 views

Making zsh prompt blink

Is there a way to cause (part of) the zsh prompt to blink? I know that I can set the colours (with %F/%f) and other visual effects (such as %S/%s), but I have not found a format code for turning on ...
user avatar
1 vote
0 answers
20 views

How can i change my microphone gain via commandline or prompt? [duplicate]

is it possible to change microphone gain via prompt/command line ? I already tried everything to change it, downloaded equalizer apo, updated drivers... i think the only way it's prompt/command line.
user avatar
1 vote
1 answer
81 views

Bash prompt: How to invert text white-on-black instead of black-on-white like tcsh

I'm a current tcsh user and have this setting in my .tcshrc file to set the prompt: set prompt="%S MBP %s %~ [\!] " My screen's text is usually black text on white brackground, but the %S ...
user avatar
0 votes
1 answer
136 views

Remove new line from batch prompt

I have the following prompt: PS1="\[\033[s\033[0;0H\033[0;41m\033[K\033[1;33mCWD:\w | \d | \t | CM: \# | \V\s\033[0m\033[u\] <\[\033[0;32m\]\u@\h\[\033[0m\]>\$" Everytime I type a ...
user avatar
1 vote
1 answer
42 views

How to customize the bash prompt in a way that doesn't squash venv

I was a long time tcsh user and I have used a custom prompt, which includes the date/time, host, and a largish path. In the past, when I've used venv, I would switch to bash first, just because ...
user avatar
  • 155
0 votes
1 answer
74 views

How to reference to or copy any parameter on the same command line in Powershell?

How to reference to the path parameter on same command line in Powershell? Is there a keyboard shortcut or builtin variable that allows to copy or reference to any parameter on the same command line? ...
user avatar
2 votes
1 answer
102 views

ZSH prompt: path except current dir

Can zsh set the prompt to the whole path except the current dir? I.e. for ~/a/b/c/ to just ~/a/b/? I'm trying to get this result for ~/a/b/c with left & right prompts: c/: | ~/a/b/...
user avatar
0 votes
1 answer
20 views

Weird shell prompt (PS) in shell scripts running under another shell type

When I run a #!/bin/sh script containing set -o xtrace in an interactive zsh I get weird output looking like %F{red}>> %f. Obviously the PS4 of my .zshrc is used but the interpreting shell is sh....
user avatar
2 votes
0 answers
192 views

PowerShell prompt color issue

I tried this: How to colorize the Powershell prompt? function prompt { $ESC = [char]27 "$ESC[46mPS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel ...
user avatar
1 vote
1 answer
229 views

Git branch name is not updated on terminal prompt when checking out another git branch

I'm having this command to set prompt in Bash terminal with Git branch name: export PS1="\w $(git branch | grep '*') " It shows the correct Git branch name for the first time after running ...
user avatar
  • 521
0 votes
0 answers
25 views

Terminal color codes not working as expected

I am using the following code in my ~/.bash_profile following some online blogs. export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced export TERM="xterm-color" export PS1='\[\033[1;32m\]$...
user avatar
0 votes
1 answer
216 views

tmux prompt misaligned in intellij terminal window

Why is it misaligned? I also see that tmux is not honoring set -g default-shell "/bin/bash" or set-option -g default-command "reattach-to-user-namespace -l bash"
user avatar
  • 323
0 votes
3 answers
260 views

PowerShell replace $env:USERPROFILE in prompt

I mean to get in my PS 5.1 prompt ~\Documents instead of C:\Users\USER1\Documents But while trying one of the "building blocks" I get an error > $($executionContext.SessionState.Path....
user avatar
4 votes
1 answer
287 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 ...
user avatar
0 votes
1 answer
32 views

Is there a way to create a command prompt shortcut open as administrator and start in another drive and folder on that server?

I would like to create a cmd.exe shortcut that will open as administrator. I have already done this. The default place it opens is on the C:\Windows\system32. I want it to open on E:\\bin instead. ...
user avatar
1 vote
1 answer
316 views

Windows, how to run a command that would self execute a file every 10 seconds for a duration and append all output to a log file

I need a batch script or a one liner to run an executable and append its output from console to a text file I also need this to run in a loop and dump the output every 10 seconds for a duration of 10 ...
user avatar
  • 127
2 votes
1 answer
79 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, ...
user avatar
0 votes
1 answer
261 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 ...
user avatar
  • 15
1 vote
1 answer
3k 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 ...
user avatar
0 votes
0 answers
1k 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 ...
user avatar
6 votes
1 answer
786 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.
user avatar
  • 299
1 vote
2 answers
465 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 ...
user avatar
  • 41
0 votes
1 answer
502 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 ...
user avatar
0 votes
1 answer
201 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 ...
user avatar
  • 1
1 vote
1 answer
93 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/...
user avatar
1 vote
0 answers
103 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 ...
user avatar
0 votes
2 answers
51 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 ...
user avatar
1 vote
1 answer
66 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?
user avatar
  • 133
1 vote
1 answer
103 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\\...
user avatar
  • 13
0 votes
1 answer
130 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
user avatar
0 votes
0 answers
9 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 ...
user avatar
4 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
2k 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....
user avatar
  • 11
0 votes
1 answer
17 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 ...
user avatar
  • 341
0 votes
1 answer
843 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 ...
user avatar
1 vote
1 answer
74 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 ...
user avatar

1
2 3 4 5 6