dotfiles/zsh/zshrc

46 lines
1.3 KiB
Bash
Raw Normal View History

2022-05-03 21:26:33 +01:00
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
2022-05-01 20:13:40 +01:00
export ZSH="/home/thomas/.oh-my-zsh"
alias vim="nvim"
alias cat="bat"
alias grep="rg"
2022-05-03 21:26:33 +01:00
alias chrome="google-chrome-stable"
2022-05-01 20:13:40 +01:00
# Set properties based on OS
case "$OSTYPE" in
darwin*)
# Mac specific
ZSH_THEME=spaceship
SPACESHIP_PACKAGE_SHOW=true
SPACESHIP_TIME_SHOW=true
SPACESHIP_NODE_SHOW=true
SPACESHIP_PACKAGE_SYMBOL=""
SPACESHIP_PACKAGE_COLOR="#e08009"
SPACESHIP_GIT_BRANCH_COLOR="#00aae0"
SPACESHIP_DIR_COLOR="#18e000"
SPACESHIP_TIME_COLOR="#bde000"
SPACESHIP_EXEC_TIME_SHOW=true
;;
linux*)
# Linux specific
2022-06-02 21:01:03 +01:00
#ZSH_THEME=agnoster-customized
ZSH_THEME=robbyrussell
;;
2022-05-01 20:13:40 +01:00
esac
plugins=(git npm zsh-syntax-highlighting)
# User configuration
source $ZSH/oh-my-zsh.sh
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
2022-05-03 21:26:33 +01:00
2022-05-09 09:59:10 +01:00
export LC_ALL=en_GB.UTF-8