From 1887185b4c6c4a36676d80ed48e629e2c49ac02c Mon Sep 17 00:00:00 2001 From: Von Random Date: Fri, 16 Sep 2022 00:46:14 +0300 Subject: [PATCH] wezterm: some default theme; zsh: better ssh icon --- wezterm.lua | 6 +++--- zsh/prompt-powerline.zsh | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wezterm.lua b/wezterm.lua index d5b1e76..92be1d7 100644 --- a/wezterm.lua +++ b/wezterm.lua @@ -3,8 +3,6 @@ local act = wt.action local fontsize_darwin = 15 local fontsize_others = 11 local theme_n = 0 -local theme = - 'Elio (Gogh)' local themes = { 'BirdsOfParadise', 'Blazer', @@ -40,6 +38,7 @@ local themes = { 'SleepyHollow', -- unusual colors 'Srcery (Gogh)', -- nice, but a bit too low on contrast } +local default_theme = themes[27] local webinar_overrides = { harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' }, color_scheme = 'PencilLight', @@ -71,8 +70,9 @@ wt.on('reset-overrides', function(window) window:set_config_overrides() end) wt.on('webinar', function(window) window:set_config_overrides(webinar_overrides) end) return { + audible_bell = "Disabled", font_size = set_fontsize(), - color_scheme = theme, + color_scheme = default_theme, cursor_blink_rate = 0, check_for_updates = false, use_resize_increments = true, diff --git a/zsh/prompt-powerline.zsh b/zsh/prompt-powerline.zsh index 21a092e..8ad4fb8 100644 --- a/zsh/prompt-powerline.zsh +++ b/zsh/prompt-powerline.zsh @@ -9,7 +9,7 @@ typeset -A prompt_symbols=( sep_b $'\ue0b1' ellipsis $'\u2026' ro $'\u2717' - ssh $'\u2191' + ssh $'\u23fb' git $'\ue0a0' git_unstaged '±' git_staged $'\u2713' @@ -123,10 +123,10 @@ precmd.prompt.git() { [[ $line =~ ahead ]] && branch_status+=! precmd.prompt.add "$prompt_symbols[git] $branch_status" $prompt_colors[git_branch] ;; - (?[MD]) (( count[git_unstaged]++ )) ;| - ([MDARC]?) (( count[git_staged]++ )) ;| - ('??') (( count[git_untracked]++ )) ;| - ([ADU][ADU]) (( count[git_unmerged]++ )) + (?[MD]) (( ++count[git_unstaged] )) ;| + ([MDARC]?) (( ++count[git_staged] )) ;| + ('??') (( ++count[git_untracked] )) ;| + ([ADU][ADU]) (( ++count[git_unmerged] )) esac done <<< $raw_status