dotfiles/zshrc_mac

80 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-03-24 17:21:30 +00:00
#ZSH Variables
ZSH_THEME="agnoster"
CASE_SENSITIVE="true"
ENABLE_CORRECTION="false"
COMPLETION_WAITING_DOTS="true"
zstyle ':omz:update' mode auto
zstyle ':omz:update' frequency 14
HIST_STAMPS="%d/%m/%y %T"
export ZSH="/Users/nikolay.lazarov/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighters
plugins=(
colored-man-pages
zsh-syntax-highlighting
zsh-autosuggestions
git
aws
docker
docker-compose
kubectl
git-flow
)
#General
export EDITOR="nvim"
export KUBE_EDITOR=nvim
export MANPAGER='nvim +Man!'
export MANWIDTH=999
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=10000
export LANG="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export DOTNET_CLI_TELEMETRY_OPTOUT="1"
alias vim='nvim'
#PATH
if [ -d "$HOME/bin" ] ;
then PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ;
then PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/tools/node/bin" ] ;
then PATH="$HOME/tools/node/bin:$PATH"
fi
ex () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1;;
*.7z) 7z x $1 ;;
*.deb) ar x $1 ;;
*.tar.xz) tar xf $1 ;;
*.tar.zst) unzstd $1 ;;
*) echo "'$1' cannot be extracted via ex()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}