dotfiles

Configuration dotfiles
git clone git://git.wimdupont.com/dotfiles.git
Log | Files | Refs | README | LICENSE

commit 8b827c0b20c19b9290e77e6f875a4c5bddc8906a
parent b3fff60ec1170e9f1324a47709c5623be085850e
Author: Wim Dupont <wim@wimdupont.com>
Date:   Tue, 18 Nov 2025 18:29:53 +0100

added customized bash prompt

Diffstat:
M.bashrc | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.bashrc b/.bashrc @@ -110,12 +110,23 @@ function cex() { rm "$txt" } +##Custom bash prompt functions +function parse_git_dirty() { + [[ $(git status --porcelain 2> /dev/null) ]] && echo "*" +} + +function parse_git_branch() { + git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/ (\1$(parse_git_dirty))/" +} +## + alias ls='ls --color=auto' alias ll='ls -l' alias weather='curl wttr.in' alias bt='bluetoothctl' alias e='cex' alias wifi='nmcli radio wifi' +alias wfl='nmcli dev wifi list' alias todo='vim ~/authored/.todo.adoc' alias signal-cli='sh ~/downloads/signal-cli/signal-cli.sh' alias lg='lazygit' @@ -126,4 +137,5 @@ alias lockcheck='faillock --user $USER' alias lockfree='faillock --user $USER --reset' alias cr='cargo run' -PS1='[\u@\h \W]\$ ' +PS1="[\u@\h \W]\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " +#PS1='[\u@\h \W]\$ '