aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-23 12:09:37 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-23 12:09:37 +0100
commit3f59b7936b9ab2dec6c9d8bc673b79ac56f4e7c3 (patch)
tree6fd70836ceccecc1901af0823363395d4f255958
parent606e07e169aa037e0ea192d9c01fae3f5ae4bd80 (diff)
update zshrc
-rw-r--r--.profile2
-rw-r--r--.zshrc12
2 files changed, 11 insertions, 3 deletions
diff --git a/.profile b/.profile
index 9b8dc1e..2ed201d 100644
--- a/.profile
+++ b/.profile
@@ -57,7 +57,7 @@ fi
export EDITOR="nvim -p"
export PAGER="less"
export FZF_DEFAULT_COMMAND="find . -name '.?*' -prune -o -print"
-export FZF_DEFAULT_OPTS="--color=bw,fg:7,scrollbar:8,info:8 --layout=reverse --info=inline-right --no-separator --marker='*' --pointer=''"
+export FZF_DEFAULT_OPTS="--color=bw,fg:7,scrollbar:8,info:8 --layout=reverse --info=inline-right --no-separator --no-scrollbar --marker='*' --pointer=''"
export GOPATH="$HOME/.local/go"
[ -e "$XDG_CONFIG_HOME/gtk-4.0/env" ] && . "$XDG_CONFIG_HOME/gtk-4.0/env"
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
diff --git a/.zshrc b/.zshrc
index 9e19ed6..35b89f1 100644
--- a/.zshrc
+++ b/.zshrc
@@ -14,11 +14,19 @@ zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' special-dirs true
-setopt auto_menu
+setopt auto_menu # show completion menu when spamming <tab>
setopt complete_in_word
-setopt always_to_end
+setopt always_to_end # move cursor to end of word after completion
+setopt auto_cd # cd if the command is a valid path
+WORDCHARS="${WORDCHARS:gs/\//}" # remove '/' from WORDCHARS
compinit -d "$ZSH_COMPDUMP"
+# history
+export HISTFILE="$XDG_DATA_HOME/zsh/history"
+export HISTSIZE=10000000
+export SAVEHIST=10000000
+setopt share_history
+
# keybinds
bindkey -e # emacs bindings
bindkey '^[[Z' reverse-menu-complete