less: Move $LESS from .zprofile to lesskey
This commit is contained in:
17
.config/lesskey
Normal file
17
.config/lesskey
Normal file
@@ -0,0 +1,17 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
# Copyright (c) 2025 Julian Prein
|
||||
|
||||
#env
|
||||
# NOTE: Lines need a trailing space when concatenating
|
||||
|
||||
# Enable mouse wheel support
|
||||
LESS = --mouse --wheel-lines=3
|
||||
# Display ANSI color escape sequences
|
||||
LESS += --RAW-CONTROL-CHARS
|
||||
# Exit if entire file fits on screen
|
||||
# NOTE: Before v530 `less` would need the -X flag as well for -F to be useful.
|
||||
# With v530 it does not enter alternate mode if the content fits in one
|
||||
# screen.
|
||||
LESS += --quit-if-one-screen
|
||||
# Ignore case if the search pattern is only lowercase
|
||||
LESS += --ignore-case
|
||||
Reference in New Issue
Block a user