Skip to main content

Questions tagged [prompt]

A string of characters displayed by interactive shells to signal the shell is waiting a user input.

0 votes
2 answers
46 views

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 ...
iLiekTaost's user avatar
1 vote
1 answer
141 views

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 ...
Jacktose's user avatar
  • 532
0 votes
2 answers
103 views

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 ...
crantok's user avatar
  • 134
0 votes
0 answers
80 views

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 ...
muggi's user avatar
  • 769
0 votes
1 answer
202 views

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: ...
IGGt's user avatar
  • 2,557
4 votes
1 answer
725 views

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 ...
Christoph's user avatar
  • 273
1 vote
2 answers
550 views

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\$ &...
Pineapple29's user avatar
2 votes
1 answer
301 views

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 ...
user8253554's user avatar

15 30 50 per page
1
2 3 4 5
45