aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-08-23 20:31:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-08-23 20:31:14 -0300
commitb74f33f91abd25d36863df109cf4181ab003b4a1 (patch)
tree341e66f08cc900b176d87de126008ad6b75f5b10
parent4d623f76c00dc19b160ed0d26843ce3dc963a5c4 (diff)
downloadprofile-b74f33f91abd25d36863df109cf4181ab003b4a1.tar.gz
profile-b74f33f91abd25d36863df109cf4181ab003b4a1.tar.bz2
Setup powerline for bash
-rw-r--r--profile.dot.link4
1 files changed, 3 insertions, 1 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 957e37d..83d4fc7 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -214,7 +214,9 @@ fi
#if [ -n "$BASH_VERSION" ]; then
if [ "$0" = "bash" ]; then
# Command prompt if no system-wide custom prompt is available
- if ! type command_prompt &> /dev/null && [ -e "$HOME/apps/shellprompt/prompt" ]; then
+ if [ -e "/usr/share/powerline/bindings/bash/powerline.sh" ]; then
+ . /usr/share/powerline/bindings/bash/powerline.sh
+ elif ! type command_prompt &> /dev/null && [ -e "$HOME/apps/shellprompt/prompt" ]; then
. $HOME/apps/shellprompt/prompt
fi
fi