Questions tagged [prompt]
A string of characters displayed by interactive shells to signal the shell is waiting a user input.
669 questions
0 votes
2 answers
46 views
Source file in bash to set prompt with ANSI colors
I have a file named .ps1, and I'm running source .ps1 in bash to try and set my prompt up with color. The contents of the .ps1 file are: __prompt_command() { local EXIT="$?" local ...
1 vote
1 answer
141 views
Multiline command substitution - syntax errors with mysterious `+1`
I'm trying to break a long command substitution on to multiple lines, as discussed in this answer. In a plain command pipeline, both explicit (\) and implicit line continuation work fine: $ echo 'blah ...
0 votes
2 answers
103 views
time in bash prompt does not change over time
I changed the prompt in my .bashrc to show the current time. This was the original prompt (from a fresh MX Linux install) PS1="$PURPLE\u$nc@$CYAN\H$nc:$GREEN\w$nc\\n$GREEN\$$nc " and I ...
0 votes
0 answers
80 views
PS1: tab completion or line break leads to cursor shift
I recently changed my PS1 in my .bashrc and I notice that my prompt has problems when the command line has more characters typed into than the number of columns of my terminal window. I also ...
0 votes
1 answer
202 views
debian command line keeps adding newline
Sorry if this is an easy one, I've tried searching and it's started to annoy me now. On one of my (Debian) servers the command prompt insists on adding a new line every time. So it looks like this: ...
4 votes
1 answer
725 views
Show live clock in bash in front of command prompt
I am looking for a way to show the current live time/clock in bash before the command prompt. What I researched so far, there are some possibilities for that. E.g. I know the bash variable PS1 can be ...
1 vote
2 answers
550 views
SSH shows double shell prompt after entering a command
As you can see in the example below, the shell prompt is duplicated after I use a command. I tried changing the PS1 to something simpler, but the same issue continues to occur: PS1="\u@\h:\W\$ &...
2 votes
1 answer
301 views
bash to delete backwards using esc+backspace till the slash on prompt
am new to bash (used tcsh till now) and I would like that using esc+backspace that the cursor will delete backwards till the very next slash (like I had in tcsh). I tried several scripts from ...