2024-04-18 18:38:12 -07:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
2024-10-02 21:01:45 -07:00
|
|
|
if command -v less &>/dev/null
|
|
|
|
set -gx LESS -R
|
2024-04-18 18:38:12 -07:00
|
|
|
|
2024-10-02 21:01:45 -07:00
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
2024-04-18 18:38:12 -07:00
|
|
|
|
2024-10-02 21:01:45 -07:00
|
|
|
abbr -a L --position anywhere --set-cursor "% | less"
|
2024-04-18 18:38:12 -07:00
|
|
|
|
2024-10-02 21:01:45 -07:00
|
|
|
if command -v nvim &>/dev/null
|
|
|
|
function lessv
|
|
|
|
if test -e "/usr/share/nvim/runtime/macros/less.sh"
|
|
|
|
/usr/share/nvim/runtime/macros/less.sh $argv
|
|
|
|
else if test -e "/usr/local/share/nvim/runtime/macros/less.sh"
|
|
|
|
/usr/local/share/nvim/runtime/macros/less.sh $argv
|
|
|
|
end
|
|
|
|
end
|
2024-09-29 21:20:17 -07:00
|
|
|
end
|
2024-04-18 18:38:12 -07:00
|
|
|
end
|