From 2b514606f58ff39b01faf79be4876dfd66ba9872 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 3 Mar 2025 12:41:14 +0530 Subject: Config sync --- config/nvim | 2 +- config/zsh/aliases/dev.zsh | 4 ++-- config/zsh/zshrc | 2 ++ scripts/bin/escript | 16 ---------------- 4 files changed, 5 insertions(+), 19 deletions(-) delete mode 100755 scripts/bin/escript diff --git a/config/nvim b/config/nvim index d82d337..a033456 160000 --- a/config/nvim +++ b/config/nvim @@ -1 +1 @@ -Subproject commit d82d337edb3a453449752b0060abc5802bce6ebc +Subproject commit a0334567e8f249ab81f8e6fe81768254afda4aa7 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 diff --git a/scripts/bin/escript b/scripts/bin/escript deleted file mode 100755 index a0373dd..0000000 --- a/scripts/bin/escript +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -dir=""; -[[ -z "$1" ]] && return 1; -if [[ ! -f "$1" ]]; then - dir=$(dirname "$1"); - [[ ! -d "$dir" ]] && mkdir -p "$dir"; - - touch "$1"; - echo -e "#!/usr/bin/env bash\n" > "$1"; -fi; - -chmod u+x "$1"; - -sensible-editor "$1"; - -- cgit v1.3.1