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
This commit is contained in:
David Ibia
2024-06-12 21:05:27 +01:00
parent 25101eb597
commit 695b8873f3

6
.zshrc
View File

@@ -79,7 +79,7 @@ source $ZSH/oh-my-zsh.sh
# Setup oh-my-posh # Setup oh-my-posh
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then 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 fi
# export MANPATH="/usr/local/man:$MANPATH" # 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 lt='eza -aT --color=always --group-directories-first --icons' # tree
alias l.='eza -a --icons | egrep "^\."' alias l.='eza -a --icons | egrep "^\."'
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo base16)" alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo ansi || echo base16)"
# Lets set the bat theme
export BAT_THEME="ansi"
# alias vim to neovim # alias vim to neovim
alias vim='nvim' alias vim='nvim'