dot

packages and services management
Log | Files | Refs | README

commit 29042da5aa42e1a6119647ee66e1840253b2416e
parent f82322dbfa16a03bc2e0cf86875f7414e5311349
Author: Josuah Demangeon⠠⠵ <mail@josuah.net>
Date:   Mon,  6 Mar 2017 13:26:59 +0100

Small adjustments

Diffstat:
M.config/dwm/config.h | 2+-
M.profile | 3++-
Mbin/git-prompt | 14+++++++-------
3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/.config/dwm/config.h b/.config/dwm/config.h @@ -11,7 +11,7 @@ static const char normfgcolor[] = "#ffffff"; static const char selbordercolor[] = "#ffffff"; static const char selbgcolor[] = "#ffffff"; static const char selfgcolor[] = "#000000"; -static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int borderpx = 0; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ diff --git a/.profile b/.profile @@ -38,12 +38,13 @@ export PS2=': ' export PS3=': ' -# coreutils +# core alias p='[ "${PWD##$HOME*}" ] && pwd || printf "~%s\n" "${PWD#$HOME}"' alias l='ls -lhp' alias la='ls -lhpA' alias cl='printf "\033[H\033[2J"' alias ..='cd ..' +alias j='jobs' # iomenu alias a='io-abduco' diff --git a/bin/git-prompt b/bin/git-prompt @@ -31,16 +31,16 @@ git rev-parse 2> /dev/null && git status --porcelain -b | awk ' /^[^ ]. / { staged++; } END { - printf(" \033[1m%s\033[0m", branch); + printf(" %s", branch); if (untracked + conflicts + changed + staged + behind + ahead == 0) { printf " \033[32mok\033[0m"; } else { - if (untracked) printf " \033[33m?\033[0m%d", untracked; - if (conflicts) printf " \033[31m!\033[0m%d", conflicts; - if (changed ) printf " \033[32m+\033[0m%d", changed ; - if (staged ) printf " \033[34m*\033[0m%d", staged ; - if (behind ) printf " \033[31m↓\033[0m%d", behind ; - if (ahead ) printf " \033[36m↑\033[0m%d", ahead ; + if (untracked) printf " \033[33m?\033[m%d", untracked; + if (conflicts) printf " \033[31m!\033[m%d", conflicts; + if (changed ) printf " \033[32m+\033[m%d", changed ; + if (staged ) printf " \033[34m*\033[m%d", staged ; + if (behind ) printf " \033[31m↓\033[m%d", behind ; + if (ahead ) printf " \033[36m↑\033[m%d", ahead ; } }'