From 695b8873f309c7de11bf929a03a82508b18fa1d8 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Wed, 12 Jun 2024 21:05:27 +0100 Subject: [PATCH] chore(.zshrc): update oh-my-posh initialization command to include custom config feat(.zshrc): update bat alias to dynamically set theme based on system interface style --- .zshrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index ea1e518..ae16d7f 100644 --- a/.zshrc +++ b/.zshrc @@ -79,7 +79,7 @@ source $ZSH/oh-my-zsh.sh # Setup oh-my-posh if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then - eval "$(oh-my-posh init zsh)" + eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/zen.toml)" fi # export MANPATH="/usr/local/man:$MANPATH" @@ -134,9 +134,7 @@ alias ll='eza -l --color=always --group-directories-first --icons' # long forma alias lt='eza -aT --color=always --group-directories-first --icons' # tree alias l.='eza -a --icons | egrep "^\."' -alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo base16)" -# Lets set the bat theme -export BAT_THEME="ansi" +alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo ansi || echo base16)" # alias vim to neovim alias vim='nvim'