chore(zsh): try to fix wrong shell when resize terminal

main
sudo pacman -Syu 2024-01-19 23:57:49 +07:00
parent 99e4690b2d
commit c1b1fbbc81
3 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,3 @@
--smart-case --smart-case
--context=5
--auto-hybrid-regex --auto-hybrid-regex

View File

@ -65,6 +65,15 @@ local font_fairfax = {
default_cursor_style = "SteadyBlock", default_cursor_style = "SteadyBlock",
} }
local font_0xproto = {
font = wezterm.font({
family = "0xProto",
}),
font_size = 16.0,
line_height = 1.2,
default_cursor_style = "SteadyBar",
}
-- https://berkeleygraphics.com/typefaces/berkeley-mono/ -- https://berkeleygraphics.com/typefaces/berkeley-mono/
local font_berkeley = { local font_berkeley = {
font = wezterm.font({ font = wezterm.font({
@ -76,7 +85,7 @@ local font_berkeley = {
default_cursor_style = "SteadyBar", default_cursor_style = "SteadyBar",
} }
local current_font = font_fairfax local current_font = font_0xproto
local current_color_scheme = "Catppuccin Mocha" local current_color_scheme = "Catppuccin Mocha"

View File

@ -42,6 +42,9 @@ DISABLE_UNTRACKED_FILES_DIRTY="true"
# https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt # https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
# https://github.com/romkatv/powerlevel10k#mitigation
typeset -g POWERLEVEL9K_TERM_SHELL_INTEGRATION=true
# https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy # https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE