1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-19 08:45:36 +00:00
dotfiles/.zshrc
2020-11-03 20:53:30 +01:00

39 lines
731 B
Bash

export TERM="xterm-256color"
export OTHER=$HOME/.zsh
export ZSH=$HOME/.oh-my-zsh
export ZSH_THEME="powerlevel9k/powerlevel9k"
source $OTHER/powerlevel_settings.sh
source $ZSH/oh-my-zsh.sh
#COMPLETION_WAITING_DOTS="false"
plugins=(git docker virtualenv)
export EDITOR=kak
export JAVA_HOME=
for f in $OTHER/*.zsh; do
if [ -f $f ]; then
source $f
fi
done
# Turn control+z into a toggle switch
ctrlz() {
if [[ $#BUFFER == 0 ]]; then
fg >/dev/null 2>&1 && zle redisplay
else
zle push-input
fi
}
zle -N ctrlz
bindkey '^Z' ctrlz
if [ -d "$HOME/.zsh-custom" ]; then
for f in $HOME/.zsh-custom/*; do
if [ -f $f ]; then
source $f
fi
done
fi
autoload -Uz compinit && compinit -i