1
0
Fork 0

wezterm: some default theme; zsh: better ssh icon

This commit is contained in:
Von Random 2022-09-16 00:46:14 +03:00
parent 3a4aa95c29
commit 1887185b4c
2 changed files with 8 additions and 8 deletions

View file

@ -3,8 +3,6 @@ local act = wt.action
local fontsize_darwin = 15 local fontsize_darwin = 15
local fontsize_others = 11 local fontsize_others = 11
local theme_n = 0 local theme_n = 0
local theme =
'Elio (Gogh)'
local themes = { local themes = {
'BirdsOfParadise', 'BirdsOfParadise',
'Blazer', 'Blazer',
@ -40,6 +38,7 @@ local themes = {
'SleepyHollow', -- unusual colors 'SleepyHollow', -- unusual colors
'Srcery (Gogh)', -- nice, but a bit too low on contrast 'Srcery (Gogh)', -- nice, but a bit too low on contrast
} }
local default_theme = themes[27]
local webinar_overrides = { local webinar_overrides = {
harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' }, harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' },
color_scheme = 'PencilLight', 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) wt.on('webinar', function(window) window:set_config_overrides(webinar_overrides) end)
return { return {
audible_bell = "Disabled",
font_size = set_fontsize(), font_size = set_fontsize(),
color_scheme = theme, color_scheme = default_theme,
cursor_blink_rate = 0, cursor_blink_rate = 0,
check_for_updates = false, check_for_updates = false,
use_resize_increments = true, use_resize_increments = true,

View file

@ -9,7 +9,7 @@ typeset -A prompt_symbols=(
sep_b $'\ue0b1' sep_b $'\ue0b1'
ellipsis $'\u2026' ellipsis $'\u2026'
ro $'\u2717' ro $'\u2717'
ssh $'\u2191' ssh $'\u23fb'
git $'\ue0a0' git $'\ue0a0'
git_unstaged '±' git_unstaged '±'
git_staged $'\u2713' git_staged $'\u2713'
@ -123,10 +123,10 @@ precmd.prompt.git() {
[[ $line =~ ahead ]] && branch_status+=! [[ $line =~ ahead ]] && branch_status+=!
precmd.prompt.add "$prompt_symbols[git] $branch_status" $prompt_colors[git_branch] precmd.prompt.add "$prompt_symbols[git] $branch_status" $prompt_colors[git_branch]
;; ;;
(?[MD]) (( count[git_unstaged]++ )) ;| (?[MD]) (( ++count[git_unstaged] )) ;|
([MDARC]?) (( count[git_staged]++ )) ;| ([MDARC]?) (( ++count[git_staged] )) ;|
('??') (( count[git_untracked]++ )) ;| ('??') (( ++count[git_untracked] )) ;|
([ADU][ADU]) (( count[git_unmerged]++ )) ([ADU][ADU]) (( ++count[git_unmerged] ))
esac esac
done <<< $raw_status done <<< $raw_status