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-06-04 20:31:03 +01:00
|
|
|
alias spot="ncspot"
|
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=""
|
2022-07-02 13:39:56 +01:00
|
|
|
SPACESHIP_NODE_SYMBOL=""
|
2022-05-01 20:13:40 +01:00
|
|
|
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
|
2022-07-09 10:54:29 +01:00
|
|
|
ZSH_THEME=robbyrussell
|
2022-06-18 22:42:54 +01:00
|
|
|
SPACESHIP_PACKAGE_SHOW=true
|
|
|
|
SPACESHIP_TIME_SHOW=true
|
|
|
|
SPACESHIP_NODE_SHOW=true
|
2022-07-02 13:39:56 +01:00
|
|
|
SPACESHIP_PACKAGE_SHOW=true
|
|
|
|
SPACESHIP_TIME_SHOW=true
|
|
|
|
SPACESHIP_NODE_SHOW=true
|
|
|
|
SPACESHIP_PACKAGE_SYMBOL=""
|
|
|
|
SPACESHIP_NODE_SYMBOL=""
|
2022-06-18 22:42:54 +01:00
|
|
|
|
2022-06-02 21:01:03 +01:00
|
|
|
;;
|
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
|
2022-06-04 20:31:03 +01:00
|
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|