improve git prompt
This commit is contained in:
3
TODO
3
TODO
@@ -1,4 +1,5 @@
|
||||
install steam, wine and lib32 multilib
|
||||
pipwire-pulseaudio as root to X11
|
||||
add nvidia to modprobe ant mkinitcpio (hyperland doc)
|
||||
improve git prompt git rev-list --left-right --count main...origin/main
|
||||
improve i3lock
|
||||
configure ranger
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
}
|
||||
|
||||
window {
|
||||
width: 90%;
|
||||
height: 100%;
|
||||
width: 50%;
|
||||
height: 50%;
|
||||
margin: 0px;
|
||||
location: north;
|
||||
anchor: north;
|
||||
location: center;
|
||||
anchor: center;
|
||||
background-color: @bg-transparent;
|
||||
//background-color: green;
|
||||
}
|
||||
|
||||
@@ -27,21 +27,12 @@ fi
|
||||
# exec Hyprland --i-am-really-stupid
|
||||
#fi
|
||||
|
||||
_git () {
|
||||
if git branch > /dev/null 2>&1
|
||||
then
|
||||
printf "\e[48;5;069;38;5;063m\e[00m\e[48;5;069m"
|
||||
printf " %s " "$(awk '{print $2}' <<< "$(git branch)")"
|
||||
printf "\e[00m\e[38;5;069m\e[00m"
|
||||
else
|
||||
printf "\e[38;5;063m\e[00m"
|
||||
fi
|
||||
}
|
||||
. /usr/local/share/dotfiles/scripts/git.sh
|
||||
|
||||
PS1="\n\[\e[48;5;027m\] \u \[\e[00m\]\[\e[48;5;033;38;5;027m\]\[\e[00m\]"
|
||||
PS1="\n\[\e[48;5;027m\] \u \[\e[00m\]\[\e[48;5;033;38;5;027m\]\[\e[00m\]"
|
||||
PS1+="\[\e[48;5;033m\] \h \[\e[00m\]\[\e[48;5;063;38;5;033m\]\e[00m\]"
|
||||
PS1+="\[\e[48;5;063m\] \w \[\e[00m\]"
|
||||
PS1+="\$(_git) "
|
||||
PS1+="\[\e[48;5;063m\] \w \[\e[00m\]\[\e[48;5;069;38;5;063m\]\e[00m\]"
|
||||
PS1+="\[\e[48;5;069m\]\$(_git) \[\e[00m\]\[\e[38;5;069m\]\e[00m\] "
|
||||
|
||||
# You may comment the following lines if you won't `ls' to be colorized:
|
||||
eval "$(dircolors)"
|
||||
|
||||
Reference in New Issue
Block a user