From: Sergey Matveev Date: Tue, 1 Jun 2021 09:57:50 +0000 (+0300) Subject: Less advanced prompt, key bindings and history X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=301e8f07dc76dbbd64ea33867ff6b0d59c66c60e Less advanced prompt, key bindings and history --- 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 {{{