From c1b1fbbc8114a29f80f5cfcba28fe79922da6664 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 19 Jan 2024 23:57:49 +0700 Subject: [PATCH] chore(zsh): try to fix wrong shell when resize terminal --- data/ripgrep/ripgreprc | 2 -- data/wezterm/wezterm.lua | 11 ++++++++++- data/zsh/top-zshrc | 3 +++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/data/ripgrep/ripgreprc b/data/ripgrep/ripgreprc index 3d9d0b7..997606e 100644 --- a/data/ripgrep/ripgreprc +++ b/data/ripgrep/ripgreprc @@ -1,5 +1,3 @@ --smart-case ---context=5 - --auto-hybrid-regex diff --git a/data/wezterm/wezterm.lua b/data/wezterm/wezterm.lua index cc3009f..11b15b1 100644 --- a/data/wezterm/wezterm.lua +++ b/data/wezterm/wezterm.lua @@ -65,6 +65,15 @@ local font_fairfax = { 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/ local font_berkeley = { font = wezterm.font({ @@ -76,7 +85,7 @@ local font_berkeley = { default_cursor_style = "SteadyBar", } -local current_font = font_fairfax +local current_font = font_0xproto local current_color_scheme = "Catppuccin Mocha" diff --git a/data/zsh/top-zshrc b/data/zsh/top-zshrc index b3dc2b4..cb909e5 100644 --- a/data/zsh/top-zshrc +++ b/data/zsh/top-zshrc @@ -42,6 +42,9 @@ DISABLE_UNTRACKED_FILES_DIRTY="true" # https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt 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 typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE