1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-19 08:45:36 +00:00
dotfiles/.zshrc

49 lines
1.4 KiB
Bash

iscmd() {
command -v "$1" > /dev/null
}
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
export TERM="xterm-256color"
export OTHER=$HOME/.zsh
export ZSH=$HOME/.oh-my-zsh
export ZSH_THEME="powerlevel10k/powerlevel10k"
source $OTHER/powerlevel_settings.sh
#COMPLETION_WAITING_DOTS="false"
plugins=(git docker docker-compose virtualenv)
## History file configuration
HISTFILE="$HOME/.zsh_history"
HISTSIZE=50000000
SAVEHIST=10000000
## History command configuration
setopt extended_history # record timestamp of command in HISTFILE
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
setopt hist_ignore_dups # ignore duplicated commands history list
setopt hist_ignore_space # ignore commands that start with space
setopt hist_verify # show command with history expansion to user before running it
export EDITOR=nvim
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"
for f in $OTHER/*.zsh; do
if [ -f $f ]; then
source $f
fi
done
if [ -d "$HOME/.zsh-custom" ]; then
for f in $HOME/.zsh-custom/*; do
if [ -f $f ]; then
source $f
fi
done
fi
DISABLE_MAGIC_FUNCTIONS=true
source $ZSH/oh-my-zsh.sh
# autoload -Uz compinit && compinit -i
source $OTHER/func.zsh