summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Holman <dholman@gymli.org>2018-10-22 19:30:58 -0500
committerDaniel Holman <dholman@gymli.org>2018-10-22 19:30:58 -0500
commit3d754b36ae97c27232e657a8d7770891b77ea29a (patch)
tree4ef24d37036b58afc84a57cf6c8ef62898c35184
parent98d750ec48173036a285b4fbb9e0352238d263e6 (diff)
Customized the git prompt of Powerline
-rw-r--r--.config/powerline/themes/shell/default.json24
1 files changed, 15 insertions, 9 deletions
diff --git a/.config/powerline/themes/shell/default.json b/.config/powerline/themes/shell/default.json
index 16d8b9c..9fceca6 100644
--- a/.config/powerline/themes/shell/default.json
+++ b/.config/powerline/themes/shell/default.json
@@ -1,6 +1,10 @@
{
"segments": {
"left": [
+ {
+ "function": "powerline.segments.shell.last_pipe_status",
+ "priority": 10
+ },
{
"function": "powerline.segments.common.net.hostname",
"priority": 10
@@ -15,7 +19,17 @@
},
{
"function": "powerline.segments.shell.cwd",
- "priority": 10
+ "priority": 10,
+ "args": {
+ "dir_limit_depth": 2
+ }
+ },
+ {
+ "function": "powerline.segments.common.vcs.branch",
+ "priority": 40,
+ "args": {
+ "status_colors": true
+ }
},
{
"function": "powerline.segments.shell.jobnum",
@@ -24,16 +38,8 @@
],
"right": [
{
- "function": "powerline.segments.shell.last_pipe_status",
- "priority": 10
- },
- {
"function": "powerline.segments.common.vcs.stash",
"priority": 50
- },
- {
- "function": "powerline.segments.common.vcs.branch",
- "priority": 40
}
]
}