wezterm: some default theme; zsh: better ssh icon
This commit is contained in:
parent
3a4aa95c29
commit
1887185b4c
2 changed files with 8 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue