aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-03-29 15:28:18 -0500
committerToby Vincent <tobyv13@gmail.com>2022-03-29 15:28:18 -0500
commit0360f381b3bdd38da4902b4b631a6122185e277c (patch)
tree3150a8e5c9fc98d5c4e296f9257bcad465b430b2
parent9770190e54128f1e24d69a1e42a013bb408c68f9 (diff)
fix: fix zsh plugins
-rw-r--r--sheldon/.config/sheldon/plugins.toml15
-rw-r--r--zsh/.config/zsh/.zshrc8
2 files changed, 14 insertions, 9 deletions
diff --git a/sheldon/.config/sheldon/plugins.toml b/sheldon/.config/sheldon/plugins.toml
index fa4b59f..9fe3a2c 100644
--- a/sheldon/.config/sheldon/plugins.toml
+++ b/sheldon/.config/sheldon/plugins.toml
@@ -4,6 +4,7 @@
github = 'romkatv/zsh-defer'
[templates]
+disable = ""
defer = { value = 'zsh-defer source "{{ file }}"', each = true }
comp = { value = 'mkdir -p "$XDG_DATA_HOME/zsh/site-functions"; ln -sf "{{ file }}" "$XDG_DATA_HOME/zsh/site-functions/_{{ name }}"', each = true }
@@ -11,18 +12,18 @@ comp = { value = 'mkdir -p "$XDG_DATA_HOME/zsh/site-functions"; ln -sf "{{ file
local = '~/.local/share/zsh-wsl'
apply = ["defer"]
-[plugins.fast-syntax-highlighting]
-github = "zdharma-continuum/fast-syntax-highlighting"
+[plugins.zsh-syntax-highlighting]
+github = "zsh-users/zsh-syntax-highlighting"
apply = ["defer"]
+[plugins.zsh-vi-mode]
+github = "jeffreytse/zsh-vi-mode"
+apply = ["disable"]
+
[plugins.zsh-shift-select]
github = "jirutka/zsh-shift-select"
apply = ["defer"]
-[plugins.fzf-tab]
-github = "Aloxaf/fzf-tab"
-apply = ["defer"]
-
[plugins.zsh-fzf-history-search]
github = "joshskidmore/zsh-fzf-history-search"
apply = ["defer"]
@@ -46,4 +47,4 @@ github = "zsh-users/zsh-autosuggestions"
use = ["{{ name }}.zsh"]
[plugins.compinit]
-inline = 'autoload -Uz compinit && zsh-defer compinit' \ No newline at end of file
+inline = 'autoload -Uz compinit && zsh-defer compinit'
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index cc2f808..8e35d81 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -6,9 +6,10 @@ HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
-setopt NO_BEEP
-setopt MENU_COMPLETE
+setopt no_beep
+setopt menu_complete
setopt auto_pushd # auto push to the directory stack on cd
+setopt auto_cd # cd without args
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
@@ -57,8 +58,11 @@ command -v fd &>/dev/null && _fzf_compgen_dir() {
fd --type d --hidden --follow --exclude ".git" . "$1"
}
+# Keybinds
+bindkey -e
bindkey '^ ' autosuggest-accept
bindkey '^[[Z' reverse-menu-complete
+# Prompt/plugins
command -v starship &>/dev/null && source <(starship init zsh)
command -v sheldon &>/dev/null && source <(sheldon source)