aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fonts/.fonts/DejaVu Sans Mono Bold Oblique for Powerline.ttfbin0 -> 254728 bytes
-rw-r--r--fonts/.fonts/DejaVu Sans Mono Bold for Powerline.ttfbin0 -> 333140 bytes
-rw-r--r--fonts/.fonts/DejaVu Sans Mono Oblique for Powerline.ttfbin0 -> 253080 bytes
-rw-r--r--fonts/.fonts/DejaVu Sans Mono for Powerline.ttfbin0 -> 341860 bytes
-rw-r--r--system/.Xresources4
-rw-r--r--system/.bashrc8
-rw-r--r--system/.config/powerline/config.json7
-rw-r--r--system/.config/powerline/themes/shell/custom.json42
8 files changed, 55 insertions, 6 deletions
diff --git a/fonts/.fonts/DejaVu Sans Mono Bold Oblique for Powerline.ttf b/fonts/.fonts/DejaVu Sans Mono Bold Oblique for Powerline.ttf
new file mode 100644
index 0000000..4905ad2
--- /dev/null
+++ b/fonts/.fonts/DejaVu Sans Mono Bold Oblique for Powerline.ttf
Binary files differ
diff --git a/fonts/.fonts/DejaVu Sans Mono Bold for Powerline.ttf b/fonts/.fonts/DejaVu Sans Mono Bold for Powerline.ttf
new file mode 100644
index 0000000..5a667c4
--- /dev/null
+++ b/fonts/.fonts/DejaVu Sans Mono Bold for Powerline.ttf
Binary files differ
diff --git a/fonts/.fonts/DejaVu Sans Mono Oblique for Powerline.ttf b/fonts/.fonts/DejaVu Sans Mono Oblique for Powerline.ttf
new file mode 100644
index 0000000..35c63ad
--- /dev/null
+++ b/fonts/.fonts/DejaVu Sans Mono Oblique for Powerline.ttf
Binary files differ
diff --git a/fonts/.fonts/DejaVu Sans Mono for Powerline.ttf b/fonts/.fonts/DejaVu Sans Mono for Powerline.ttf
new file mode 100644
index 0000000..3a6261a
--- /dev/null
+++ b/fonts/.fonts/DejaVu Sans Mono for Powerline.ttf
Binary files differ
diff --git a/system/.Xresources b/system/.Xresources
index 15169ce..3040bdb 100644
--- a/system/.Xresources
+++ b/system/.Xresources
@@ -1,5 +1,5 @@
-*faceName: DejaVu Sans Mono
-*font: xft:DejaVu Sans Mono:size=8,xft:Estrangelo Edessa:size=10
+*faceName: DejaVu Sans Mono for Powerline
+*font: xft:DejaVu Sans Mono for Powerline:size=8,xft:Estrangelo Edessa:size=10
*faceSize: 9
*selectToClipboard: true
*dynamicColors: on
diff --git a/system/.bashrc b/system/.bashrc
index 3d93ddd..98d3078 100644
--- a/system/.bashrc
+++ b/system/.bashrc
@@ -115,13 +115,13 @@ fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
-# Path abbreviations like Vim, see http://unix.stackexchange.com/a/26885/37050
-PROMPT_COMMAND='pwd2=$(if [ "$PWD" != "$HOME" ]; then sed "s:\([^/]\{1,2\}\)[^/]*/:\1/:g" <<<$PWD; else echo "~";fi)'
-export PS1='\u@\h:$pwd2\$ '
-
GPG_TTY=$(tty)
export GPG_TTY
+powerline-daemon -q
+POWERLINE_BASH_CONTINUATION=1
+POWERLINE_BASH_SELECT=1
+. /usr/local/lib/python3.7/dist-packages/powerline/bindings/bash/powerline.sh
PATH="/home/camil/perl5/bin${PATH+:}${PATH}"; export PATH;
PERL5LIB="/home/camil/perl5/lib/perl5${PERL5LIB+:}${PERL5LIB}"; export PERL5LIB;
diff --git a/system/.config/powerline/config.json b/system/.config/powerline/config.json
new file mode 100644
index 0000000..432a56d
--- /dev/null
+++ b/system/.config/powerline/config.json
@@ -0,0 +1,7 @@
+{
+ "ext": {
+ "shell": {
+ "theme": "custom"
+ }
+ }
+}
diff --git a/system/.config/powerline/themes/shell/custom.json b/system/.config/powerline/themes/shell/custom.json
new file mode 100644
index 0000000..030de37
--- /dev/null
+++ b/system/.config/powerline/themes/shell/custom.json
@@ -0,0 +1,42 @@
+{
+ "segments": {
+ "left": [
+ {
+ "function": "powerline.segments.common.net.hostname",
+ "priority": 10
+ },
+ {
+ "function": "powerline.segments.common.env.user",
+ "args": {
+ "hide_user": "camil"
+ },
+ "priority": 30
+ },
+ {
+ "function": "powerline.segments.shell.cwd",
+ "args": {
+ "dir_limit_depth": 3,
+ "dir_shorten_len": 4,
+ "use_path_separator": true
+ },
+ "priority": 10
+ },
+ {
+ "function": "powerline.segments.common.vcs.branch",
+ "args": {
+ "status_colors": true,
+ "ignore_statuses": ["U"]
+ },
+ "priority": 40
+ },
+ {
+ "function": "powerline.segments.shell.jobnum",
+ "priority": 20
+ },
+ {
+ "function": "powerline.segments.shell.last_pipe_status",
+ "priority": 10
+ }
+ ]
+ }
+}