add git status

Signed-off-by: Efertone <efertone@pm.me>
This commit is contained in:
Victoria Nadasdi 2023-04-05 16:24:11 +02:00
parent 88c2d5c42a
commit 385cd2c489
Signed by: efertone
GPG Key ID: 58E2D23885002DC5
2 changed files with 8 additions and 5 deletions

View File

@ -6,12 +6,12 @@ source "${current_dir}/colours"
function left() {
line='#[align=left range=left #{status-left-style}]'
line=$line"#[fg=${white},bg=${dark_purple},bold]"
line=$line"#[fg=${white},bold]"
line=$line' #S ' \
line=$line"#[fg=${pink}]"
line=$line"#[fg=${light_purple}]"
line=$line' '$(whoami)' '
line=$line"#[fg=${dark_purple},bg=default,nobold]"
#line=$line"#[fg=${dark_purple},bg=default,nobold]"
echo $line

View File

@ -6,10 +6,13 @@ source "${current_dir}/colours"
function left() {
line=''
line=$line"#[fg=${white},bg=${dark_purple}]"
line=$line' '$(~/.tmux/get-path "$1")
line=$line' #(gitmux "#{pane_current_path}") '
line=$line"#[fg=${white},bold,bg=${dark_purple}]"
line=$line' '$(~/.tmux/get-path "$1")' '
line=$line"#[fg=${dark_purple},bg=default,nobold]"
gm=$(gitmux "${1}")
if [[ "${gm}" != "" ]]; then
line=$line" $(gitmux "${1}") "
fi
echo $line