Comments (4)
Hi there,
Basically tmux is using a different PS1 variable from your .bashrc
file.
In your .bashrc
file, look for this line:
if [ "$color_prompt" = yes ]; then
PS1="\[\033[1;32m\]\342\224\214\342\224\200$([[ $(/opt/vpnbash.sh) == *"10."* ]] && echo "[\[\033[1;34m\]$(/opt/vpnserver.sh)\[\033[1;32m\]]\342\224\200[\[\033[1;37m\]$(/opt/vpnbash.sh)\[\033[1;32m\]]\342\224\200")[\[\033[1;37m\]\u\[\033[01;32m\]@\[\033[01;34m\]\h\[\033[1;32m\]]\342\224\200[\[\033[1;37m\]\w\[\033[1;32m\]]\n\[\033[1;32m\]\342\224\224\342\224\200\342\224\200\342\225\274 [\[\e[01;33m\]??\[\e[01;32m\]]\\$ \[\e[0m\]"
else
PS1='┌──[\u@\h]─[\w]\n└──╼ \$ '
fi
And what you need to do is update both PS1
variables. This is where your terminal prompt gets its style from, so you can put almost anything there. Replace those lines with this:
if [ "$color_prompt" = yes ]; then
PS1="\[\033[1;32m\]\342\224\200$([[ $(/opt/vpnbash.sh) == *"10."* ]] && echo "[\[\033[1;34m\]$(/opt/vpnserver.sh)\[\033[1;32m\]]\342\224\200[\[\033[1;37m\]$(/opt/vpnbash.sh)\[\033[1;32m\]]\342\224\200")[\[\033[1;37m\]\u\[\033[01;32m\]@\[\033[01;34m\]\h\[\033[1;32m\]]\342\224\200[\[\033[1;37m\]\w\[\033[1;32m\]]\$\[\e[0m\]"
else
PS1="\[\033[1;32m\]\342\224\200$([[ $(/opt/vpnbash.sh) == *"10."* ]] && echo "[\[\033[1;34m\]$(/opt/vpnserver.sh)\[\033[1;32m\]]\342\224\200[\[\033[1;37m\]$(/opt/vpnbash.sh)\[\033[1;32m\]]\342\224\200")[\[\033[1;37m\]\u\[\033[01;32m\]@\[\033[01;34m\]\h\[\033[1;32m\]]\342\224\200[\[\033[1;37m\]\w\[\033[1;32m\]]\$\[\e[0m\]"
That should work for you
from pwnbox.
No it still persists. I guess its related to some character encoding. I am using 3.1b version of tmux and they have done something with character encoding.
And if i open tmux in vscode it works fine there is no misinterpretation of characters. So I think definitely it is related to characters.
from pwnbox.
I finally got the solution run tmux with -u flag. and it works fine. Or better create an alias as:
alias tmux='tmux -u'.
from pwnbox.
awesome! glad you figured it out. I'll keep note of it and see if anyone else has that issue
from pwnbox.
Related Issues (20)
- Openvpn .conf not found HOT 2
- Ping not appearing properly HOT 4
- Can't Connect HOT 1
- Terminal issues when connected to VPN HOT 2
- Weird bash prompt HOT 3
- No Zsh Shell in kali HOT 3
- Terminal not working HOT 1
- Powershell Prompt HOT 4
- vpnserver.sh wrong systemctl call HOT 3
- The bashrc file needs a new line character
- Terminal issues HOT 2
- Updates
- ARM Support
- Might want to add in the description that you have to be using Parrot 4.9 MATE HOT 1
- ~/.config/ ? HOT 1
- Pwnbox issue with theme HOT 5
- Solution for tmux HOT 2
- Pwnbox HOT 1
- terminal new issue 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 pwnbox.