From 0f61afbcfce8eb0d2681b4324a9906884bde277f Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 6 Dec 2023 10:57:30 +0300 Subject: [PATCH] less keymap --- home/user/.config/bash/export | 2 +- home/user/.config/git/config | 2 +- home/user/.lesskey | 3 +++ install | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 home/user/.lesskey diff --git a/home/user/.config/bash/export b/home/user/.config/bash/export index c50a46a..74742cc 100644 --- a/home/user/.config/bash/export +++ b/home/user/.config/bash/export @@ -5,7 +5,7 @@ export EDITOR="nvim" export VISUAL="nvim" export PAGER="less" -export LESS="-nMiSR -+X -+F" +export LESS="-nCMiSR -# 1 -+X -+F" export CDPATH=:~:~/code diff --git a/home/user/.config/git/config b/home/user/.config/git/config index d9df805..286d070 100644 --- a/home/user/.config/git/config +++ b/home/user/.config/git/config @@ -1,7 +1,7 @@ [core] excludesfile = ~/.config/git/ignore editor = "$EDITOR" - pager = "$PAGER -F" + pager = "$PAGER -+C -F" fileMode = false hooksPath = ~/.config/git/hooks diff --git a/home/user/.lesskey b/home/user/.lesskey new file mode 100644 index 0000000..b4cba4b --- /dev/null +++ b/home/user/.lesskey @@ -0,0 +1,3 @@ +#command +h left-scroll +l right-scroll diff --git a/install b/install index 69ac20e..64131c8 100755 --- a/install +++ b/install @@ -11,7 +11,7 @@ export SUB declare -r -A TARGETS=( - ["bash"]=".config/bash .bashrc .profile" + ["bash"]=".config/bash .bashrc .profile .lesskey" ["zsh"]="%bash .config/zsh .zshrc .zprofile .zlogout .inputrc" ["tmux"]=".tmux.conf" ["alacritty"]=".config/alacritty"