From 95ab5209b9a9467a9cb519690233e1a6f0d4e18f Mon Sep 17 00:00:00 2001 From: Caleb Braaten Date: Tue, 17 Sep 2024 16:13:36 -0700 Subject: [PATCH] Add vscode and zed terminal exceptions, Support vscode font limitations --- casklist | 1 + zsh/.zshrc | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/casklist b/casklist index 0ad4384..edaf67b 100644 --- a/casklist +++ b/casklist @@ -2,6 +2,7 @@ alacritty docker font-fira-code-nerd-font +font-fira-mono-nerd-font insomnia netnewswire raindropio diff --git a/zsh/.zshrc b/zsh/.zshrc index ae5268f..fd44919 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -31,8 +31,9 @@ export NOMAD_ADDR=http://pandora.cortex.io:4646 export PATH="/opt/homebrew/opt/libpq/bin:$PATH" # ---- Oh-My-Posh ---- -if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then - eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/theme.toml)" +if [ "$TERM_PROGRAM" != "Apple_Terminal" ] && [ "$TERM_PROGRAM" != "zed" ]; +then + eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/theme.toml)" fi # ---- Zoxide (better cd) ---- @@ -46,7 +47,8 @@ source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # ---- Auto Enter TMUX ---- -if [ -z "$TMUX" ] +if [ -z "$TMUX" ] && [ "$TERM_PROGRAM" != "vscode" ] && [ "$TERM_PROGRAM" != "zed" ]; then tmux attach -t TMUX || tmux new -s TMUX fi +