Wonky bash prompt right after installation

Ask questions about Arch Linux ARM. Please search before making a new topic.

Wonky bash prompt right after installation

Postby nesk » Sat Jun 16, 2018 9:30 am

Hello,
I installed Archlinux ARM on Cubieboard and without doing any customization my prompt looks like this on ssh login:
Code: Select all
_cubie@alarm:~\[cubie@alarm ~]$ echo $PS1
[\u@\h \W]\$

There are box-like symbols before underscore and after first tilda - forum doesn't seem to render them.
Why is it so weird by default?
If I set PS1 in ~/.bashrc it's slightly better, but there's still box-like symbols:
Code: Select all
$ cat .bashrc
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

PS1='\w: '
$ exit
$ _cubie@alarm:~\~:

How can I get rid of all the extra stuff?
nesk
 
Posts: 2
Joined: Sat Jun 16, 2018 9:18 am

Re: Wonky bash prompt right after installation

Postby user76 » Wed Jun 20, 2018 4:40 pm

Hi,

Not to be cocky, I do not know the answer to your question, but try this: https://linuxconfig.org/bash-prompt-basics

On a quick look, it seems to describe what the symbols mean and how to configure them. Worth a try.
user76
 
Posts: 8
Joined: Sat May 26, 2018 2:04 pm

Re: Wonky bash prompt right after installation

Postby nesk » Thu Jun 21, 2018 8:10 am

Thanks for replying.
The problem is, even if I completely unset PS1 and PS2, all the wonky characters remain in the prompt:
Code: Select all
_cubie@alarm:~\grep PS .bashrc
# PS1='\w: '
unset PS1
unset PS2
_cubie@alarm:~\echo $PS1

_cubie@alarm:~\echo $PS2

nesk
 
Posts: 2
Joined: Sat Jun 16, 2018 9:18 am


Return to User Questions

Who is online

Users browsing this forum: Google [Bot] and 1 guest