dotfiles/stowers/zsh/dot-zshrc

48 lines
1 KiB
Bash

#!/bin/bash
export PATH="${PATH}:${HOME}/.local/bin"
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt notify
unsetopt autocd beep nomatch
bindkey -v
zstyle :compinstall filename "${HOME}/.zshrc"
autoload -Uz compinit
compinit
# Read man page.
zstyle ':completion:*:manuals' separate-sections true
zstyle ':completion:*:manuals.*' insert-sections true
zstyle ':completion:*:man:*' menu yes select
# Load all files from the .zshrc.d folder.
if [[ -d "${HOME}/.zshrc.d" ]]; then
for ext in "${HOME}"/.zshrc.d/*.sh; do
source "${ext}"
done
fi
alias ls="ls --color=auto"
# Custom command completions
if [[ -f "${HOME}/.bash_completion" ]]; then
source "${HOME}"/.bash_completion
fi
# Starship
eval "$(starship init zsh)"