From 301e8f07dc76dbbd64ea33867ff6b0d59c66c60e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 1 Jun 2021 12:57:50 +0300 Subject: [PATCH] Less advanced prompt, key bindings and history --- zsh/.lesskey | 3 +++ zsh/.zprofile | 1 + zsh/.zshenv | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 zsh/.lesskey diff --git a/zsh/.lesskey b/zsh/.lesskey new file mode 100644 index 0000000..0067e60 --- /dev/null +++ b/zsh/.lesskey @@ -0,0 +1,3 @@ +#command +^N next-file +^P prev-file diff --git a/zsh/.zprofile b/zsh/.zprofile index cec7998..ae64a97 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -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 diff --git a/zsh/.zshenv b/zsh/.zshenv index dd9c10c..c838734 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -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 {{{ -- 2.44.0