diff --git a/bin/swap_mode.sh b/bin/swap_mode.sh index f4a9b27..a094482 100755 --- a/bin/swap_mode.sh +++ b/bin/swap_mode.sh @@ -28,6 +28,7 @@ else fi # Reload neovim theme +local keys if [ "$MODE" = "light" ]; then keys=$':silent! let g:light_mode=1 | set background=light | doautocmd ColorScheme | redraw!' else diff --git a/config/ghostty/config b/config/ghostty/config index 7815010..bd4315e 100644 --- a/config/ghostty/config +++ b/config/ghostty/config @@ -1,14 +1,12 @@ # --- Basics font-family = "IosevkaTermSlab Nerd Font Propo" font-style = "Regular" -font-size = 12 +font-size = 13 background-opacity = 1.0 -window-decoration = none -confirm-close-surface = false # Auto light/dark theme pair that matches your two palettes below #theme = dark:my-dark,light:my-light -theme = zenwritten-dark +theme = zenwritten-light # Font-size keybindings (match Ctrl+Shift+j/k from WezTerm) keybind = all:ctrl+shift+k=increase_font_size:1 diff --git a/home/.zshrc b/home/.zshrc index af49b5b..b5f9420 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -1,6 +1,7 @@ #============================================================================== # Zsh Configuration #============================================================================== + # History settings HISTFILE=~/.histfile HISTSIZE=100000 @@ -61,33 +62,9 @@ zstyle -e ':completion:*:hosts' hosts 'reply=( #============================================================================== # nvm -# Lazy-load nvm - only initialize when first used export NVM_DIR="$HOME/.nvm" - -# Function to load nvm (called only once) -load_nvm() { - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" -} - -# Create placeholder functions that load nvm once, then call the real command -nvm() { - unset -f nvm node npm - load_nvm - nvm "$@" -} - -node() { - unset -f nvm node npm - load_nvm - node "$@" -} - -npm() { - unset -f nvm node npm - load_nvm - npm "$@" -} +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # ghcup [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env @@ -135,4 +112,3 @@ if [ "$(uname)" = "Darwin" ]; then else alias ls="ls --classify --group-directories-first --color" fi -