Comments (11)
What are locale settings? $ locale
What does the terminal print if you type $ echo $'\2388'
from kube-ps1.
Here it is @jonmosco :
[08:30:33] ~ $ bash --norc
bash-4.3$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=
bash-4.3$ echo $'\2388'
�88
bash-4.3$
from kube-ps1.
Sorry, forgot the u
$ echo $'\u2388'
Which terminal emulator are you using?
from kube-ps1.
It's terminator, but the same is in terminal.
[13:26:13] ~/Downloads $ echo $'\u2388'
⎈
[15:10:55] ~/Downloads $
[15:10:55] ~/Downloads $ terminator -v
terminator 0.98
[15:11:32] ~/Downloads $
[15:12:39] ~/Downloads $ gnome-terminal --version
GNOME Terminal 3.18.3
[15:12:42] ~/Downloads $
from kube-ps1.
Do you see the same output when you have kube_ps1 in your actual prompt?
from kube-ps1.
Yes @jonmosco , this is how I discovered it.
from kube-ps1.
Can you paste the portion of your bashrc that is calling kube_ps1?
from kube-ps1.
source ~/.kube/kubectl-alias.sh
PS1='\D{[%T]} \w$(kube_ps1)$ '
kubeoff
from kube-ps1.
I can reproduce this on my machine with the correct output.
Can you send a screenshot of this in the prompt?
from kube-ps1.
It's weird, now it's working fine in the prompt, but when I do echo it's still there. I guess we can close it:
from kube-ps1.
\001
and \002
are removed by bash and PS1 is drawn correctly. The terminal in the case of the echo
(gnome-terminal specifically) is not properly translating those chars. I tested this in xterm, rxvt, and terminal and it works as expected. This will even work in gnome-terminal with tmux as well.
from kube-ps1.
Related Issues (20)
- Support for cloud providers HOT 1
- Seems to constantly hit the AWS api? HOT 1
- Need some help setting up HOT 5
- Minor typo in kubeon help message HOT 1
- _kube_ps1_file_newer_than:16: division by zero HOT 4
- New release? HOT 1
- Add variable to disable display context HOT 4
- possible to switch over to openshift logo/icon? HOT 1
- the KUBE_PS1* configuration env vars dominate tab completion HOT 3
- About `KUBE_PS1_SHELL` HOT 2
- Latest VScode 1.74 breaks kube-ps1: character not in range HOT 1
- kubeon/kubeoff does not change prompt when added as oh-my-zsh plugin HOT 10
- display context name HOT 2
- installing in Windows HOT 2
- Running kube_ps1 in bash function returns blank HOT 5
- A few questions about the documentation HOT 1
- multiple prompts HOT 7
- Hide no cluster and default namespace option HOT 2
- Dynamic context colors HOT 3
- Automatically disable kube-ps1 when no context is available HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-ps1.