summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zsh_plugins.txt3
-rw-r--r--.config/zsh/.zshrc42
2 files changed, 13 insertions, 32 deletions
diff --git a/.config/zsh/.zsh_plugins.txt b/.config/zsh/.zsh_plugins.txt
index 70680f0..9f5f59b 100644
--- a/.config/zsh/.zsh_plugins.txt
+++ b/.config/zsh/.zsh_plugins.txt
@@ -1,4 +1,3 @@
zsh-users/zsh-completions
-zdharma-continuum/fast-syntax-highlighting
-#zsh-users/zsh-autosuggestions
+zsh-users/zsh-syntax-highlighting
romkatv/powerlevel10k
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index e63eed6..1b345af 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -1,43 +1,26 @@
-# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
-# Initialization code that may require console input (password prompts, [y/n]
-# confirmations, etc.) must go above this block; everything else may go below.
-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
-
#
# getchoo's zshrc
#
+antidote_dir="${ZDOTDIR}/.antidote"
# plugins :)
-if ! [[ -e ${ZDOTDIR:-~}/.antidote ]]; then
- git clone https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
+if [[ ! -d ${antidote_dir} ]]
+then
+ git clone https://github.com/mattmc3/antidote.git ${antidote_dir}/.antidote
fi
-# source antidote and load plugins from `${ZDOTDIR:-~}/.zsh_plugins.txt`
-zhome=${ZDOTDIR:-$HOME}
-if [[ ! $zhome/.zsh_plugins.zsh -nt $zhome/.zsh_plugins.txt ]]; then
- [[ -e $zhome/.antidote ]] \
- || git clone --depth=1 https://github.com/mattmc3/antidote.git $zhome/.antidote
- [[ -e $zhome/.zsh_plugins.txt ]] || touch $zhome/.zsh_plugins.txt
- (
- source $zhome/.antidote/antidote.zsh
- antidote bundle <$zhome/.zsh_plugins.txt >$zhome/.zsh_plugins.zsh
- )
+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
-autoload -Uz $zhome/.antidote/functions/antidote
-
-source $zhome/.zsh_plugins.zsh
-unset zhome
+source ${antidote_dir}/antidote.zsh && antidote load
+unset antidote_dir
# zmodules
-autoload -U compinit #promptinit
+autoload -U compinit
zmodload zsh/complist
zstyle ':completion:*' menu select reshash true
compinit
-#promptinit
-#prompt walters
# options
setopt append_history
@@ -62,12 +45,11 @@ bindkey '^L' clear-screen-and-scrollback
# enable history
HISTFILE="$XDG_STATE_HOME/zsh/history"
-HISTSIZE=200
+HISTSIZE=100
SAVEHIST=1000
-# aliases
-alias ls='exa'
-alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
+# source aliases
+source "$XDG_CONFIG_HOME/shell/aliases"
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh