]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Less advanced prompt, key bindings and history
authorSergey Matveev <stargrave@stargrave.org>
Tue, 1 Jun 2021 09:57:50 +0000 (12:57 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 1 Jun 2021 10:02:59 +0000 (13:02 +0300)
zsh/.lesskey [new file with mode: 0644]
zsh/.zprofile
zsh/.zshenv

diff --git a/zsh/.lesskey b/zsh/.lesskey
new file mode 100644 (file)
index 0000000..0067e60
--- /dev/null
@@ -0,0 +1,3 @@
+#command
+^N next-file
+^P prev-file
index cec79984b7e2cb7842de58be671759b96533a62d..ae64a97abc9f1e1bd7d71185d7c5f1cba4e419a0 100644 (file)
@@ -1,4 +1,5 @@
 umask 077
+lesskey
 mkdir -p /tmp/stargrave-xdg /tmp/stargrave-lldb /tmp/stargrave-flags
 env | grep -q XAUTH || ~/bin/rem
 ~/bin/cleanup.sh
index dd9c10c34d9b86cc8a9afd042ef2d85c22ea965b..c838734550aaa5dcbfc045c95d78325982b230d3 100644 (file)
@@ -15,8 +15,9 @@ export TERM
 
 # Less options {{{
 export PAGER=less
-export LESSHISTFILE=-
-export LESS=RXij3M
+export LESSHISTFILE=/tmp/.lesshst
+export LESS=RWXij3
+export LESS=${LESS}"Ps?f%f .?m(%i/%m) .%lt-%lb?L/%L. [%bB?B/%B.]?B %pB\%.?x N\:%x.%t"
 # }}}
 
 # ls options {{{