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