Update zshrc to separate mac and linux config. Update ghostty configuration

This commit is contained in:
Alex Selimov 2025-09-09 08:19:53 -04:00
parent 802edc7d88
commit a8fbf84c59
No known key found for this signature in database
GPG key ID: BC03C17FF5CFFFD2
3 changed files with 27 additions and 13 deletions

View file

@ -1,5 +1,10 @@
# --- Basics
font-family = "IosevkaTermSlab Nerd Font Propo"
font-style = "Regular"
# Optional: make bold map to bright colors like iTerm2
bold-color = "#fefefe"
font-size = 13
# Disable programming ligatures (same as your HarfBuzz flags)
@ -15,6 +20,7 @@ theme = my-dark
# Font-size keybindings (match Ctrl+Shift+j/k from WezTerm)
keybind = all:ctrl+shift+k=increase_font_size:1
keybind = all:ctrl+shift+j=decrease_font_size:1
background-opacity = 1.0
# Optional: make the split divider visible (newer Ghostty)
# split-divider-color = #444444

View file

@ -1,5 +1,5 @@
# Colors = your WezTerm dark palette
foreground = #8e8e8e
foreground = #BBBBBB
background = #191919
cursor-color = #BBBBBB
cursor-text = #191919

View file

@ -14,7 +14,6 @@ bindkey -v
zstyle :compinstall filename '/home/aselimov/.zshrc'
export LS_COLORS='di=1;37:ln=35:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43'
alias ls="ls --classify --group-directories-first --color"
#~/bin/daily_scripture.sh
autoload -Uz compinit
@ -34,18 +33,7 @@ alias clip2png="xclip -selection clipboard -target image/png -out"
function addbin(){
ln -s $PWD/$1 /home/aselimov/bin
}
eval "$(starship init zsh)"
zstyle -e ':completion:*:hosts' hosts 'reply=(
${=${${(f)"$(cat {/etc/ssh_,~/ar.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
)'
source "/home/aselimov/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
source "/home/aselimov/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
source "/home/aselimov/.config/zsh/zsh-history-substring-search/zsh-history-substring-search.zsh"
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
export XKB_DEFAULT_OPTIONS="caps:escape"
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
@ -65,3 +53,23 @@ export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - zsh)"
# Settings that need to swap between Mac and Linux
if [ "$(uname)" = "Darwin" ]; then
export PATH="$PATH:/opt/homebrew/bin"
alias ls="gls --classify --group-directories-first --color"
else
alias ls="ls --classify --group-directories-first --color"
fi
eval "$(starship init zsh)"
zstyle -e ':completion:*:hosts' hosts 'reply=(
${=${${(f)"$(cat {/etc/ssh_,~/ar.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
)'
source "$HOME/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
source "$HOME/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
source "$HOME/.config/zsh/zsh-history-substring-search/zsh-history-substring-search.zsh"
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down