gnome-terminal hides ending characters of the current path's first row [duplicate] The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)My terminal wont break line in first linegnome-terminal hides ending characters of the current path's first row. (This question is for Ubuntu-18.04 users who are using original files)How do I get long command lines to wrap to the next line?Gnome Terminal Column/Row Width?The GNOME Terminal is very slow in GNOME 3gnome-terminal and loggingHelp with bash script with textoverlapping characters in terminalGNOME Terminal Title as Number/Position of the tabgnome-terminal vim strange charactersgnome-terminal highlight URLs ending in close-parenLaunch command in gnome-terminal, then close gnome-terminal without ending executed command?
How did passengers keep warm on sail ships?
"... to apply for a visa" or "... and applied for a visa"?
How do I add random spotting to the same face in cycles?
Can undead you have reanimated wait inside a portable hole?
Sort a list of pairs representing an acyclic, partial automorphism
ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?
He got a vote 80% that of Emmanuel Macron’s
Why can't devices on different VLANs, but on the same subnet, communicate?
Segmentation fault output is suppressed when piping stdin into a function. Why?
University's motivation for having tenure-track positions
Scientific Reports - Significant Figures
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
Can withdrawing asylum be illegal?
Relations between two reciprocal partial derivatives?
How should I replace vector<uint8_t>::const_iterator in an API?
What aspect of planet Earth must be changed to prevent the industrial revolution?
Change bounding box of math glyphs in LuaTeX
Working through the single responsibility principle (SRP) in Python when calls are expensive
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
Who or what is the being for whom Being is a question for Heidegger?
Do working physicists consider Newtonian mechanics to be "falsified"?
does high air pressure throw off wheel balance?
When did F become S in typeography, and why?
Match Roman Numerals
gnome-terminal hides ending characters of the current path's first row [duplicate]
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)My terminal wont break line in first linegnome-terminal hides ending characters of the current path's first row. (This question is for Ubuntu-18.04 users who are using original files)How do I get long command lines to wrap to the next line?Gnome Terminal Column/Row Width?The GNOME Terminal is very slow in GNOME 3gnome-terminal and loggingHelp with bash script with textoverlapping characters in terminalGNOME Terminal Title as Number/Position of the tabgnome-terminal vim strange charactersgnome-terminal highlight URLs ending in close-parenLaunch command in gnome-terminal, then close gnome-terminal without ending executed command?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
This question already has an answer here:
My terminal wont break line in first line
1 answer
I've noticed weird behaviors by varying either the current path's length or the gnome-terminal's width. I'll give you an example (I use the character |
to indicate the window's right border):
username@hostname:/directory/directory/directory/dire |
ory/directory/directory/directory/directory/directory |
/directory/directory/directory/directory/directory/di |
rectory/directory/directory$ |
As you can see, at the first row, Ubuntu terminal hides the string "ct" of the word "directory"; the other rows are fine.
I said the string "ct" is hidden because, if I resize the window width, that reappears but other two characters are hidden. For example:
username@hostname:/directory/directory/directory/di |
ctory/directory/directory/directory/directory/direc |
tory/directory/directory/directory/directory/direct |
ory/directory/directory$ |
This time the string "re" is hidden. The problem always occurs at the first row!
I use gnome-terminal. You get it with Ubuntu 18.04.2 installation and find it among pre-installed applications.
$ grep PS1 ~/.bashrc
PS1='$debian_chroot:+($debian_chroot)[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
PS1='$debian_chroot:+($debian_chroot)u@h:w$ '
PS1="[e]0;$debian_chroot:+($debian_chroot)u@h: wa]$PS1"
$ printf '%qn' "$PS1"
\[\e]0;\u@\h: \w\a\]$debian_chroot:+($debian_chroot)\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
$ printf '%qn' "$PROMPT_COMMAND"
''
I've done some experiments and noticed different "weird" behaviors by varying either the current path's length or the window width:
- If the length is short, I can resize the window width and all the rows are always fine (no hidden characters);
- if I increase the length of a little bit (for example adding a directory), the first row's last character is hidden;
- If I use
cd ..
command to decrease the path till the point 1 length and resize the window enough to make the path takes more than a row, five characters are hidden (same length but different behavior); By varying the window width, part of the row is overwritten; for example:
$ ername@hostname:/directory/directory/directory/directory/directory |
The substring "us" is deleted and gnome-terminal lets me write commands over that line which will be deleted as I type.
I'm using Ubuntu-18.04.2's original ~/.bashrc
file. I've read many questions related with my issue, but I haven't managed to solve it. My issue seems different from those ones.
command-line 18.04 gnome bash gnome-terminal
marked as duplicate by WinEunuuchs2Unix, Charles Green, Eric Carvalho, dessert, karel 13 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
|
show 5 more comments
This question already has an answer here:
My terminal wont break line in first line
1 answer
I've noticed weird behaviors by varying either the current path's length or the gnome-terminal's width. I'll give you an example (I use the character |
to indicate the window's right border):
username@hostname:/directory/directory/directory/dire |
ory/directory/directory/directory/directory/directory |
/directory/directory/directory/directory/directory/di |
rectory/directory/directory$ |
As you can see, at the first row, Ubuntu terminal hides the string "ct" of the word "directory"; the other rows are fine.
I said the string "ct" is hidden because, if I resize the window width, that reappears but other two characters are hidden. For example:
username@hostname:/directory/directory/directory/di |
ctory/directory/directory/directory/directory/direc |
tory/directory/directory/directory/directory/direct |
ory/directory/directory$ |
This time the string "re" is hidden. The problem always occurs at the first row!
I use gnome-terminal. You get it with Ubuntu 18.04.2 installation and find it among pre-installed applications.
$ grep PS1 ~/.bashrc
PS1='$debian_chroot:+($debian_chroot)[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
PS1='$debian_chroot:+($debian_chroot)u@h:w$ '
PS1="[e]0;$debian_chroot:+($debian_chroot)u@h: wa]$PS1"
$ printf '%qn' "$PS1"
\[\e]0;\u@\h: \w\a\]$debian_chroot:+($debian_chroot)\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
$ printf '%qn' "$PROMPT_COMMAND"
''
I've done some experiments and noticed different "weird" behaviors by varying either the current path's length or the window width:
- If the length is short, I can resize the window width and all the rows are always fine (no hidden characters);
- if I increase the length of a little bit (for example adding a directory), the first row's last character is hidden;
- If I use
cd ..
command to decrease the path till the point 1 length and resize the window enough to make the path takes more than a row, five characters are hidden (same length but different behavior); By varying the window width, part of the row is overwritten; for example:
$ ername@hostname:/directory/directory/directory/directory/directory |
The substring "us" is deleted and gnome-terminal lets me write commands over that line which will be deleted as I type.
I'm using Ubuntu-18.04.2's original ~/.bashrc
file. I've read many questions related with my issue, but I haven't managed to solve it. My issue seems different from those ones.
command-line 18.04 gnome bash gnome-terminal
marked as duplicate by WinEunuuchs2Unix, Charles Green, Eric Carvalho, dessert, karel 13 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Do you use Ubuntu’s standard terminal emulatorgnome-terminal
? Please edit and add this information as well as the output ofgrep PS1 ~/.bashrc
in a code block (button).
– dessert
Apr 10 at 21:19
Hmm, the bashrc looks fine, but the prompt might be changed elsewhere. Could you add the output ofdeclare -p PS1 PROMPT_COMMAND
?
– wjandrea
Apr 10 at 22:39
Oops, just noticeddeclare -p
can hide some things. Please add the output ofprintf '%qn' "$PS1" "$PROMPT_COMMAND"
– wjandrea
Apr 10 at 22:46
3
Possible duplicate of My terminal wont break line in first line There are many duplicates to this question in Unix&Linux and Stack Overflow sister sites to Ask Ubuntu. A quick google search will give you lots of validation.
– WinEunuuchs2Unix
2 days ago
1
OK, the PS1 and PROMPT_COMMAND are good. (I forgot how verboseprintf %q
is so I skipped reading them- set them myself but couldn't reproduce the issue, though I'm not using 18.04.)
– wjandrea
yesterday
|
show 5 more comments
This question already has an answer here:
My terminal wont break line in first line
1 answer
I've noticed weird behaviors by varying either the current path's length or the gnome-terminal's width. I'll give you an example (I use the character |
to indicate the window's right border):
username@hostname:/directory/directory/directory/dire |
ory/directory/directory/directory/directory/directory |
/directory/directory/directory/directory/directory/di |
rectory/directory/directory$ |
As you can see, at the first row, Ubuntu terminal hides the string "ct" of the word "directory"; the other rows are fine.
I said the string "ct" is hidden because, if I resize the window width, that reappears but other two characters are hidden. For example:
username@hostname:/directory/directory/directory/di |
ctory/directory/directory/directory/directory/direc |
tory/directory/directory/directory/directory/direct |
ory/directory/directory$ |
This time the string "re" is hidden. The problem always occurs at the first row!
I use gnome-terminal. You get it with Ubuntu 18.04.2 installation and find it among pre-installed applications.
$ grep PS1 ~/.bashrc
PS1='$debian_chroot:+($debian_chroot)[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
PS1='$debian_chroot:+($debian_chroot)u@h:w$ '
PS1="[e]0;$debian_chroot:+($debian_chroot)u@h: wa]$PS1"
$ printf '%qn' "$PS1"
\[\e]0;\u@\h: \w\a\]$debian_chroot:+($debian_chroot)\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
$ printf '%qn' "$PROMPT_COMMAND"
''
I've done some experiments and noticed different "weird" behaviors by varying either the current path's length or the window width:
- If the length is short, I can resize the window width and all the rows are always fine (no hidden characters);
- if I increase the length of a little bit (for example adding a directory), the first row's last character is hidden;
- If I use
cd ..
command to decrease the path till the point 1 length and resize the window enough to make the path takes more than a row, five characters are hidden (same length but different behavior); By varying the window width, part of the row is overwritten; for example:
$ ername@hostname:/directory/directory/directory/directory/directory |
The substring "us" is deleted and gnome-terminal lets me write commands over that line which will be deleted as I type.
I'm using Ubuntu-18.04.2's original ~/.bashrc
file. I've read many questions related with my issue, but I haven't managed to solve it. My issue seems different from those ones.
command-line 18.04 gnome bash gnome-terminal
This question already has an answer here:
My terminal wont break line in first line
1 answer
I've noticed weird behaviors by varying either the current path's length or the gnome-terminal's width. I'll give you an example (I use the character |
to indicate the window's right border):
username@hostname:/directory/directory/directory/dire |
ory/directory/directory/directory/directory/directory |
/directory/directory/directory/directory/directory/di |
rectory/directory/directory$ |
As you can see, at the first row, Ubuntu terminal hides the string "ct" of the word "directory"; the other rows are fine.
I said the string "ct" is hidden because, if I resize the window width, that reappears but other two characters are hidden. For example:
username@hostname:/directory/directory/directory/di |
ctory/directory/directory/directory/directory/direc |
tory/directory/directory/directory/directory/direct |
ory/directory/directory$ |
This time the string "re" is hidden. The problem always occurs at the first row!
I use gnome-terminal. You get it with Ubuntu 18.04.2 installation and find it among pre-installed applications.
$ grep PS1 ~/.bashrc
PS1='$debian_chroot:+($debian_chroot)[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
PS1='$debian_chroot:+($debian_chroot)u@h:w$ '
PS1="[e]0;$debian_chroot:+($debian_chroot)u@h: wa]$PS1"
$ printf '%qn' "$PS1"
\[\e]0;\u@\h: \w\a\]$debian_chroot:+($debian_chroot)\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
$ printf '%qn' "$PROMPT_COMMAND"
''
I've done some experiments and noticed different "weird" behaviors by varying either the current path's length or the window width:
- If the length is short, I can resize the window width and all the rows are always fine (no hidden characters);
- if I increase the length of a little bit (for example adding a directory), the first row's last character is hidden;
- If I use
cd ..
command to decrease the path till the point 1 length and resize the window enough to make the path takes more than a row, five characters are hidden (same length but different behavior); By varying the window width, part of the row is overwritten; for example:
$ ername@hostname:/directory/directory/directory/directory/directory |
The substring "us" is deleted and gnome-terminal lets me write commands over that line which will be deleted as I type.
I'm using Ubuntu-18.04.2's original ~/.bashrc
file. I've read many questions related with my issue, but I haven't managed to solve it. My issue seems different from those ones.
This question already has an answer here:
My terminal wont break line in first line
1 answer
command-line 18.04 gnome bash gnome-terminal
command-line 18.04 gnome bash gnome-terminal
edited 19 hours ago
dessert
25.5k674108
25.5k674108
asked Apr 10 at 19:14
John DoeJohn Doe
1641214
1641214
marked as duplicate by WinEunuuchs2Unix, Charles Green, Eric Carvalho, dessert, karel 13 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by WinEunuuchs2Unix, Charles Green, Eric Carvalho, dessert, karel 13 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Do you use Ubuntu’s standard terminal emulatorgnome-terminal
? Please edit and add this information as well as the output ofgrep PS1 ~/.bashrc
in a code block (button).
– dessert
Apr 10 at 21:19
Hmm, the bashrc looks fine, but the prompt might be changed elsewhere. Could you add the output ofdeclare -p PS1 PROMPT_COMMAND
?
– wjandrea
Apr 10 at 22:39
Oops, just noticeddeclare -p
can hide some things. Please add the output ofprintf '%qn' "$PS1" "$PROMPT_COMMAND"
– wjandrea
Apr 10 at 22:46
3
Possible duplicate of My terminal wont break line in first line There are many duplicates to this question in Unix&Linux and Stack Overflow sister sites to Ask Ubuntu. A quick google search will give you lots of validation.
– WinEunuuchs2Unix
2 days ago
1
OK, the PS1 and PROMPT_COMMAND are good. (I forgot how verboseprintf %q
is so I skipped reading them- set them myself but couldn't reproduce the issue, though I'm not using 18.04.)
– wjandrea
yesterday
|
show 5 more comments
1
Do you use Ubuntu’s standard terminal emulatorgnome-terminal
? Please edit and add this information as well as the output ofgrep PS1 ~/.bashrc
in a code block (button).
– dessert
Apr 10 at 21:19
Hmm, the bashrc looks fine, but the prompt might be changed elsewhere. Could you add the output ofdeclare -p PS1 PROMPT_COMMAND
?
– wjandrea
Apr 10 at 22:39
Oops, just noticeddeclare -p
can hide some things. Please add the output ofprintf '%qn' "$PS1" "$PROMPT_COMMAND"
– wjandrea
Apr 10 at 22:46
3
Possible duplicate of My terminal wont break line in first line There are many duplicates to this question in Unix&Linux and Stack Overflow sister sites to Ask Ubuntu. A quick google search will give you lots of validation.
– WinEunuuchs2Unix
2 days ago
1
OK, the PS1 and PROMPT_COMMAND are good. (I forgot how verboseprintf %q
is so I skipped reading them- set them myself but couldn't reproduce the issue, though I'm not using 18.04.)
– wjandrea
yesterday
1
1
Do you use Ubuntu’s standard terminal emulator
gnome-terminal
? Please edit and add this information as well as the output of grep PS1 ~/.bashrc
in a code block (
button).– dessert
Apr 10 at 21:19
Do you use Ubuntu’s standard terminal emulator
gnome-terminal
? Please edit and add this information as well as the output of grep PS1 ~/.bashrc
in a code block (
button).– dessert
Apr 10 at 21:19
Hmm, the bashrc looks fine, but the prompt might be changed elsewhere. Could you add the output of
declare -p PS1 PROMPT_COMMAND
?– wjandrea
Apr 10 at 22:39
Hmm, the bashrc looks fine, but the prompt might be changed elsewhere. Could you add the output of
declare -p PS1 PROMPT_COMMAND
?– wjandrea
Apr 10 at 22:39
Oops, just noticed
declare -p
can hide some things. Please add the output of printf '%qn' "$PS1" "$PROMPT_COMMAND"
– wjandrea
Apr 10 at 22:46
Oops, just noticed
declare -p
can hide some things. Please add the output of printf '%qn' "$PS1" "$PROMPT_COMMAND"
– wjandrea
Apr 10 at 22:46
3
3
Possible duplicate of My terminal wont break line in first line There are many duplicates to this question in Unix&Linux and Stack Overflow sister sites to Ask Ubuntu. A quick google search will give you lots of validation.
– WinEunuuchs2Unix
2 days ago
Possible duplicate of My terminal wont break line in first line There are many duplicates to this question in Unix&Linux and Stack Overflow sister sites to Ask Ubuntu. A quick google search will give you lots of validation.
– WinEunuuchs2Unix
2 days ago
1
1
OK, the PS1 and PROMPT_COMMAND are good. (I forgot how verbose
printf %q
is so I skipped reading them- set them myself but couldn't reproduce the issue, though I'm not using 18.04.)– wjandrea
yesterday
OK, the PS1 and PROMPT_COMMAND are good. (I forgot how verbose
printf %q
is so I skipped reading them- set them myself but couldn't reproduce the issue, though I'm not using 18.04.)– wjandrea
yesterday
|
show 5 more comments
1 Answer
1
active
oldest
votes
In your PS1 you must enclose the non-printable characters (and only those!) inside [
and ]
. You also enclose the printable ones (like @
, but also placeholders like h
. This messes up bash's calculation of where the cursor is.
It is bash and not gnome-terminal that chops off (doesn't properly display) the last two letters
I tried to edit the PS1's third line according to your suggestions, but I didn't resolve the problem. Can you tell me what changes I need to do? I'm sorry but I'm new in Ubuntu. Thanks.
– John Doe
2 days ago
2
Oops, my bad. I overlooked that these are within ae]0;
...a
block to set the title, that is, your original version was correct that encloses this entire block in these marks.
– egmont
2 days ago
I still suspect that the issue is along these lines, but I can't see where exactly the problem is.
– egmont
2 days ago
egmont, thank you for your interest and replies. I've edited my question... I hope that may be useful.
– John Doe
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In your PS1 you must enclose the non-printable characters (and only those!) inside [
and ]
. You also enclose the printable ones (like @
, but also placeholders like h
. This messes up bash's calculation of where the cursor is.
It is bash and not gnome-terminal that chops off (doesn't properly display) the last two letters
I tried to edit the PS1's third line according to your suggestions, but I didn't resolve the problem. Can you tell me what changes I need to do? I'm sorry but I'm new in Ubuntu. Thanks.
– John Doe
2 days ago
2
Oops, my bad. I overlooked that these are within ae]0;
...a
block to set the title, that is, your original version was correct that encloses this entire block in these marks.
– egmont
2 days ago
I still suspect that the issue is along these lines, but I can't see where exactly the problem is.
– egmont
2 days ago
egmont, thank you for your interest and replies. I've edited my question... I hope that may be useful.
– John Doe
2 days ago
add a comment |
In your PS1 you must enclose the non-printable characters (and only those!) inside [
and ]
. You also enclose the printable ones (like @
, but also placeholders like h
. This messes up bash's calculation of where the cursor is.
It is bash and not gnome-terminal that chops off (doesn't properly display) the last two letters
I tried to edit the PS1's third line according to your suggestions, but I didn't resolve the problem. Can you tell me what changes I need to do? I'm sorry but I'm new in Ubuntu. Thanks.
– John Doe
2 days ago
2
Oops, my bad. I overlooked that these are within ae]0;
...a
block to set the title, that is, your original version was correct that encloses this entire block in these marks.
– egmont
2 days ago
I still suspect that the issue is along these lines, but I can't see where exactly the problem is.
– egmont
2 days ago
egmont, thank you for your interest and replies. I've edited my question... I hope that may be useful.
– John Doe
2 days ago
add a comment |
In your PS1 you must enclose the non-printable characters (and only those!) inside [
and ]
. You also enclose the printable ones (like @
, but also placeholders like h
. This messes up bash's calculation of where the cursor is.
It is bash and not gnome-terminal that chops off (doesn't properly display) the last two letters
In your PS1 you must enclose the non-printable characters (and only those!) inside [
and ]
. You also enclose the printable ones (like @
, but also placeholders like h
. This messes up bash's calculation of where the cursor is.
It is bash and not gnome-terminal that chops off (doesn't properly display) the last two letters
answered 2 days ago
egmontegmont
4,44211126
4,44211126
I tried to edit the PS1's third line according to your suggestions, but I didn't resolve the problem. Can you tell me what changes I need to do? I'm sorry but I'm new in Ubuntu. Thanks.
– John Doe
2 days ago
2
Oops, my bad. I overlooked that these are within ae]0;
...a
block to set the title, that is, your original version was correct that encloses this entire block in these marks.
– egmont
2 days ago
I still suspect that the issue is along these lines, but I can't see where exactly the problem is.
– egmont
2 days ago
egmont, thank you for your interest and replies. I've edited my question... I hope that may be useful.
– John Doe
2 days ago
add a comment |
I tried to edit the PS1's third line according to your suggestions, but I didn't resolve the problem. Can you tell me what changes I need to do? I'm sorry but I'm new in Ubuntu. Thanks.
– John Doe
2 days ago
2
Oops, my bad. I overlooked that these are within ae]0;
...a
block to set the title, that is, your original version was correct that encloses this entire block in these marks.
– egmont
2 days ago
I still suspect that the issue is along these lines, but I can't see where exactly the problem is.
– egmont
2 days ago
egmont, thank you for your interest and replies. I've edited my question... I hope that may be useful.
– John Doe
2 days ago
I tried to edit the PS1's third line according to your suggestions, but I didn't resolve the problem. Can you tell me what changes I need to do? I'm sorry but I'm new in Ubuntu. Thanks.
– John Doe
2 days ago
I tried to edit the PS1's third line according to your suggestions, but I didn't resolve the problem. Can you tell me what changes I need to do? I'm sorry but I'm new in Ubuntu. Thanks.
– John Doe
2 days ago
2
2
Oops, my bad. I overlooked that these are within a
e]0;
... a
block to set the title, that is, your original version was correct that encloses this entire block in these marks.– egmont
2 days ago
Oops, my bad. I overlooked that these are within a
e]0;
... a
block to set the title, that is, your original version was correct that encloses this entire block in these marks.– egmont
2 days ago
I still suspect that the issue is along these lines, but I can't see where exactly the problem is.
– egmont
2 days ago
I still suspect that the issue is along these lines, but I can't see where exactly the problem is.
– egmont
2 days ago
egmont, thank you for your interest and replies. I've edited my question... I hope that may be useful.
– John Doe
2 days ago
egmont, thank you for your interest and replies. I've edited my question... I hope that may be useful.
– John Doe
2 days ago
add a comment |
1
Do you use Ubuntu’s standard terminal emulator
gnome-terminal
? Please edit and add this information as well as the output ofgrep PS1 ~/.bashrc
in a code block (button).
– dessert
Apr 10 at 21:19
Hmm, the bashrc looks fine, but the prompt might be changed elsewhere. Could you add the output of
declare -p PS1 PROMPT_COMMAND
?– wjandrea
Apr 10 at 22:39
Oops, just noticed
declare -p
can hide some things. Please add the output ofprintf '%qn' "$PS1" "$PROMPT_COMMAND"
– wjandrea
Apr 10 at 22:46
3
Possible duplicate of My terminal wont break line in first line There are many duplicates to this question in Unix&Linux and Stack Overflow sister sites to Ask Ubuntu. A quick google search will give you lots of validation.
– WinEunuuchs2Unix
2 days ago
1
OK, the PS1 and PROMPT_COMMAND are good. (I forgot how verbose
printf %q
is so I skipped reading them- set them myself but couldn't reproduce the issue, though I'm not using 18.04.)– wjandrea
yesterday