riobard / bash-powerline Goto Github PK
View Code? Open in Web Editor NEWPowerline-style Bash prompt in pure Bash script. See also https://github.com/riobard/zsh-powerline
License: The Unlicense
Powerline-style Bash prompt in pure Bash script. See also https://github.com/riobard/zsh-powerline
License: The Unlicense
I have to say this is perfect and I have been using this for some time, however all of a sudden it's taking several minutes to load terminal and I have narrowed this down to powerline.
Do you have any suggestion on how I could debug this to find the root cause?
Not an issue, just a thank you. I've tried alternatives that turned out to be too slow on my machine. What a brilliant idea to use bash in this.
It's sooo much faster. Thank you ๐ ๐ฏ
~ $ sh ~/.bash-powerline.sh
/home/dnesteruk/.bash-powerline.sh: 50: /home/dnesteruk/.bash-powerline.sh: Syntax error: "(" unexpected (expecting "fi")
On my centos 6.9 machine, git symbolic-ref doesn't have the --short option. One way to accommodate for older git versions is $($git_eng rev-parse --abbrev-ref 2>/dev/null)
. Or i could have just updated git ;)
Hi,
I see a few good pull requests. Is there someone up to review and apply them ?
I'm able to help if needed.
Thanks.
Could we show git stash status on the prompt too?
I like bash-powerline very much. I think the following code is much portable
readonly SYMBOL_GIT_BRANCH=$(echo -e '\ue0a0')
I use Linux and Windows. I think the branch glyphs can not display on my environment.
Is it possible to add a short prompt?
something like:
PS1='[\u@\h \W]\$ '
E.g.
~/Documents/folder/foo/bar
will be displayed as
[user@machine .bar]$
I try to use the bash_powerline.sh file to replace my .bash_profile. But after that, I open a new terminal, I try to open ipython which is working well before, but it shows command not found. What should I do to make it work?
XTERM_TITLE='\[\e]0;\u@\H: \w\a\]'
then change
PS1="$XTERM_TITLE$cwd$git$symbol"
(I am too lazy to do a pull request)
#.. when it is supposed to open the new tab in the same folder from where Cmd+T (Shell | New Tab | New Tab with [same] Settings) was pressed. Oh, and I am using the default bash terminal.
This works fine in Ubuntu 16.04 (when I press Ctrl+Shift+T to open a new tab).
The only change I have made to the bash-powerline.sh file (in Mac and Ubuntu) is to add one line to the function ps1() to add a new line #character:
PS1+="\e[m \n$ "
And, in .bashrc, the last line is this
source ~/.bash-powerline.sh
It works fine in MacOS if I uncomment the above last line in .bashrc.
Any idea how to resolve this? Thanks.
In the solarized theme, blue is defined as bash color 33 aka #0087ff
, and that's how it's set in bash-powerline. However, this seems much too bright on the dark theme:
Confusingly, your screenshot shows the much more fitting and moderate #3a8bd2
. How?
Using a default terminal, after sourcing a python virtual environment script
cd ~
mkdir folder
cd folder
python -m venv venv
source ven/bin/activate
This action modifies the bash prompt to something like this
(venv) ~/folder
Using this bash script drops that part. Is it possible to add support for this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.