aboutsummaryrefslogtreecommitdiff
path: root/config/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'config/zsh')
-rw-r--r--config/zsh/aliases/dev.zsh4
-rw-r--r--config/zsh/zshrc2
2 files changed, 4 insertions, 2 deletions
diff --git a/config/zsh/aliases/dev.zsh b/config/zsh/aliases/dev.zsh
index 804e646..46b1b7f 100644
--- a/config/zsh/aliases/dev.zsh
+++ b/config/zsh/aliases/dev.zsh
@@ -89,7 +89,7 @@ synsearch() {
--bind "change:reload:$search_cmd" \
--preview "$preview_cmd" \
< /dev/null) \
- | cut -d: -f1 \
- | xargs -r "$EDITOR" {};
+ | awk -F: -v q="'" '{ print "+" q "call cursor(" $2 "," $3 ")" q " " $1 }' \
+ | xargs -r "$EDITOR";
}
diff --git a/config/zsh/zshrc b/config/zsh/zshrc
index 6522186..ffa9f30 100644
--- a/config/zsh/zshrc
+++ b/config/zsh/zshrc
@@ -2,6 +2,8 @@ autoload -U colors && colors;
setopt auto_cd;
setopt inc_append_history;
+export LESS=--chop-long-lines # less no wrapping
+
export SAVEHIST=10000
# export HISTSIZE=50000
# export HISTFILE=~/.config/zsh_history