dotfiles/zshrc

78 lines
1.6 KiB
Bash

#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="/home/nlazarov/.oh-my-zsh"
export ZSH_CUSTOM="/home/nlazarov/git/zsh"
source $ZSH/oh-my-zsh.sh
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
}