diff options
| author | Mike Vink <ivi@vinkies.net> | 2025-02-09 21:16:06 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2025-02-09 21:16:06 +0100 |
| commit | 4fc4b9159608aa6d5fac3ead800bea381581c0c7 (patch) | |
| tree | a52cf03aeed90174f6558b8fdb2a1b8f012fa200 | |
| parent | 320a115d3e508a1a40efdcc9faccdc50fcf5ab39 (diff) | |
small changes
| -rw-r--r-- | .config/ksh/ksh.kshrc | 2 | ||||
| -rw-r--r-- | .config/vis/visrc.lua | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/.config/ksh/ksh.kshrc b/.config/ksh/ksh.kshrc index a05cd11..578ffa8 100644 --- a/.config/ksh/ksh.kshrc +++ b/.config/ksh/ksh.kshrc @@ -16,6 +16,8 @@ pwd | cut -d'/' -f2- --output-delimiter ' )\$(prompt-git)\n jobs(\j) # " bind -m ^L="^A^K clear^J" +eval "$(zoxide init posix --cmd cd --hook prompt)" + export HISTFILE="$HOME/.history" export HISTCONTROL=ignorespace set -o emacs diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua index 69a16a9..76aa7fd 100644 --- a/.config/vis/visrc.lua +++ b/.config/vis/visrc.lua @@ -5,7 +5,7 @@ local quickfix = require('vis-quickfix') local format = require('vis-format') local m = vis.modes -quickfix.grepprg = "rg --hidden --no-ignore-vcs --vimgrep" +quickfix.grepprg = "grep -Hn " vis.ftdetect.filetypes.terraform = { ext = { "%.tf$" }, @@ -22,7 +22,10 @@ vis.events.subscribe(vis.events.INIT, function() vis:command"set change256colors off" vis:command"set theme lemonsoda" + vis:map(m.NORMAL, '<C-[>', ':cp<Enter>') + vis:map(m.NORMAL, '<C-]>', ':cn<Enter>') vis:map(m.INSERT, '<C-r>"', '<C-r>+') + vis:map(m.NORMAL, 'y', '<vis-register>+<vis-operator-yank>') vis:map(m.VISUAL, 'y', '<vis-register>+<vis-operator-yank>') vis:map(m.VISUAL_LINE, 'y', '<vis-register>+<vis-operator-yank>') @@ -99,6 +102,7 @@ vis:map(m.NORMAL, "<C-x>_", function() end return true; end) +vis:map(m.NORMAL, "<C-x>g", ":!tig<Enter>") vis:map(m.NORMAL, "<C-x><C-f>", function() local code, result, err = vis:pipe("vis-open " .. (parent(vis.win.file.path) or ".")) if result then |
