Add vscode and zed terminal exceptions, Support vscode font limitations

This commit is contained in:
Caleb Braaten 2024-09-17 16:13:36 -07:00
parent de0a74edee
commit 95ab5209b9
2 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,7 @@
alacritty alacritty
docker docker
font-fira-code-nerd-font font-fira-code-nerd-font
font-fira-mono-nerd-font
insomnia insomnia
netnewswire netnewswire
raindropio raindropio

View File

@ -31,8 +31,9 @@ export NOMAD_ADDR=http://pandora.cortex.io:4646
export PATH="/opt/homebrew/opt/libpq/bin:$PATH" export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
# ---- Oh-My-Posh ---- # ---- Oh-My-Posh ----
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then if [ "$TERM_PROGRAM" != "Apple_Terminal" ] && [ "$TERM_PROGRAM" != "zed" ];
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/theme.toml)" then
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/theme.toml)"
fi fi
# ---- Zoxide (better cd) ---- # ---- 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 source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# ---- Auto Enter TMUX ---- # ---- Auto Enter TMUX ----
if [ -z "$TMUX" ] if [ -z "$TMUX" ] && [ "$TERM_PROGRAM" != "vscode" ] && [ "$TERM_PROGRAM" != "zed" ];
then then
tmux attach -t TMUX || tmux new -s TMUX tmux attach -t TMUX || tmux new -s TMUX
fi fi