Skip to content

Commit

Permalink
Disable mouse for less
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Jul 11, 2024
1 parent 977ba02 commit 91e268c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -1582,9 +1582,10 @@ zshrc_set_environment_variables() {
# macOS and some other distros don't use traditional Linux ls colors.
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
# Enable colors for less by default.
# Enable colors for less by default. Disable mouse because while scrolling is nice, it's not worth losing copy-paste.
# --LINE-NUMBERS
export LESS='--RAW-CONTROL-CHARS --mouse --ignore-case --quit-if-one-screen --status-column --tabs=4 --wheel-lines=3'
# --mouse
export LESS='--RAW-CONTROL-CHARS --ignore-case --quit-if-one-screen --status-column --tabs=4 --wheel-lines=3'
if [[ "$(uname)" == "Linux" ]]; then
CPU_CORES="$(grep "^core id" /proc/cpuinfo | sort -u | wc -l)"
Expand Down

0 comments on commit 91e268c

Please sign in to comment.