summary refs log tree commit diff stats
path: root/tag-antibody/config/zsh
diff options
context:
space:
mode:
authorAlan Pearce2016-06-24 16:57:11 +0200
committerAlan Pearce2016-06-24 16:57:11 +0200
commit665d0c79f6c3167ca125666cedd85e8c29a47bdc (patch)
tree33567eda421b00e66035e6b22c41af7c84c670c0 /tag-antibody/config/zsh
parent8c19ef6bcfba51c562b3c979db8f9d6cd6ae9919 (diff)
downloadnixfiles-665d0c79f6c3167ca125666cedd85e8c29a47bdc.tar.lz
nixfiles-665d0c79f6c3167ca125666cedd85e8c29a47bdc.tar.zst
nixfiles-665d0c79f6c3167ca125666cedd85e8c29a47bdc.zip
Load plugins via antibody
Diffstat (limited to 'tag-antibody/config/zsh')
-rw-r--r--tag-antibody/config/zsh/plugins.txt7
-rw-r--r--tag-antibody/config/zsh/zshenv0
-rw-r--r--tag-antibody/config/zsh/zshrc42
3 files changed, 49 insertions, 0 deletions
diff --git a/tag-antibody/config/zsh/plugins.txt b/tag-antibody/config/zsh/plugins.txt
new file mode 100644
index 00000000..361bad38
--- /dev/null
+++ b/tag-antibody/config/zsh/plugins.txt
@@ -0,0 +1,7 @@
+zsh-users/zsh-completions
+mafredri/zsh-async
+Tarrasch/zsh-autoenv
+caarlos0/zsh-git-sync
+caarlos0/zsh-open-pr
+sindresorhus/pure
+clvv/fasd
diff --git a/tag-antibody/config/zsh/zshenv b/tag-antibody/config/zsh/zshenv
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tag-antibody/config/zsh/zshenv
diff --git a/tag-antibody/config/zsh/zshrc b/tag-antibody/config/zsh/zshrc
new file mode 100644
index 00000000..3a9722c2
--- /dev/null
+++ b/tag-antibody/config/zsh/zshrc
@@ -0,0 +1,42 @@
+source <(antibody init)
+
+AUTOENV_FILE_ENTER=.envrc
+AUTOENV_HANDLE_LEAVE=0
+AUTOENV_LOOK_UPWARDS=1
+
+PURE_GIT_PULL=0
+
+source $ZDOTDIR/load-plugins.zsh
+
+function update_antibody () {
+	antibody bundle < .config/zsh/plugins.txt| xargs -I {} echo "source {}" >> .config/zsh/load-plugins.zsh
+}
+
+
+# General configuration
+setopt auto_cd 					# Change directories without `cd`
+
+autoload -U compinit && compinit
+autoload -Uz promptinit && promptinit
+
+if [[ -n $commands[fasd] ]]
+then
+	_FASD_DATA="$HOME/.cache/zsh/fasd-data"
+	source =fasd
+
+	fasd_cache="$HOME/.fasd-init-zsh"
+	if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
+		fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install >| "$fasd_cache"
+	fi
+	source "$fasd_cache"
+	unset fasd_cache
+else
+	echo "no fasd"
+fi
+
+unsetopt flow_control 			# Let me use ^S and ^Q
+# bindkey '\e[A' directory-history-search-backward
+# bindkey '\e[B' directory-history-search-forward
+
+# bindkey -M emacs '^R' history-substring-search-up
+# bindkey -M emacs '^S' history-substring-search-down