Add .zshrc

This commit is contained in:
Martin Larsson 2024-01-20 01:31:08 +01:00
parent 13549985ce
commit 1c3c7b966e

30
.zshrc Normal file
View file

@ -0,0 +1,30 @@
# CodeWhisperer pre block. Keep at the top of this file.
[[ -f "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.pre.zsh"
# Created by Zap installer
[ -f "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh" ] && source "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh"
plug "zsh-users/zsh-autosuggestions"
plug "zap-zsh/supercharge"
plug "zap-zsh/zap-prompt"
plug "zsh-users/zsh-syntax-highlighting"
plug "jeffreytse/zsh-vi-mode"
# Load and initialise completion system
autoload -Uz compinit
compinit
# Neovim
export PATH=$HOME/local/nvim/bin:$PATH
# Aliases
## Eza
alias ls="eza -a"
alias ll="eza --long --header -a"
alias tree="eza --tree --level=2"
## Pygments
alias cat="pygmentize -g"
## Neovim
alias vim="nvim"
# CodeWhisperer post block. Keep at the bottom of this file.
[[ -f "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.post.zsh"