From 60a71e503da5a93d6fc362a096ce12ff58124653 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sun, 4 Oct 2020 11:19:09 +0200 Subject: update --- .bash-powerline.sh | 6 ++++-- .i3status.conf | 2 +- .profile | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.bash-powerline.sh b/.bash-powerline.sh index 8121f92..232d7a5 100644 --- a/.bash-powerline.sh +++ b/.bash-powerline.sh @@ -12,7 +12,8 @@ __powerline() { readonly COLOR_SUCCESS='\[\033[0;34m\]' # blue readonly COLOR_FAILURE='\[\033[0;31m\]' # red - readonly SYMBOL_GIT_BRANCH='⑂' + #readonly SYMBOL_GIT_BRANCH='⑂' + readonly SYMBOL_GIT_BRANCH='→' readonly SYMBOL_GIT_MODIFIED='*' readonly SYMBOL_GIT_PUSH='↑' readonly SYMBOL_GIT_PULL='↓' @@ -66,7 +67,7 @@ __powerline() { done < <($git_eng status --porcelain --branch 2>/dev/null) # note the space between the two < # print the git branch segment without a trailing newline - printf " $ref$marks" + printf "$ref$marks" } ps1() { @@ -98,6 +99,7 @@ __powerline() { fi } + PROMPT_DIRTRIM=2 PROMPT_COMMAND="ps1${PROMPT_COMMAND:+; $PROMPT_COMMAND}" } diff --git a/.i3status.conf b/.i3status.conf index e60903b..b3af3a3 100644 --- a/.i3status.conf +++ b/.i3status.conf @@ -5,6 +5,7 @@ # The following line should contain a sharp s: # ß # If the above line is not correctly displayed, fix your editor first! +# Some icon chars can be found at https://emojipedia.org/objects/ general { colors = true @@ -29,7 +30,6 @@ read_file hostname { path = "/etc/hostname" } -# ☠ wireless _first_ { #format_up = "🌐 %essid %quality" #format_up = "📶 %essid %quality" diff --git a/.profile b/.profile index 3a407f5..cb09e87 100644 --- a/.profile +++ b/.profile @@ -6,5 +6,5 @@ PATH=~/bin:$PATH:~/go/bin # Last action: auto start X11 when logged on first console case $HOSTNAME in -(swift|yoda) [ "$(tty)" != /dev/tty1 ] || exec startx ;; +([sS]wift|yoda) [ "$(tty)" != /dev/tty1 ] || exec startx ;; esac -- cgit v1.2.3