Update .config/fish/conf.d/20-aliases.fish

Add .config/fish/conf.d/30-less.fish
This commit is contained in:
punkfairie 2024-04-18 18:38:12 -07:00
parent bab7ebb524
commit e4ec9ec8bd
No known key found for this signature in database
GPG key ID: 284B78B49C058673
2 changed files with 16 additions and 1 deletions

View file

@ -36,6 +36,10 @@ abbr -a _edit_txt --position command --regex ".+\.txt" --function _edit_txt_func
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
abbr -a L --position anywhere --set-cursor "% | less"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Default command options.
abbr -a cp --position command "cp -iv"

View file

@ -0,0 +1,11 @@
#!/usr/bin/env fish
set -gx LESS -R
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
abbr -a L --position anywhere --set-cursor "% | less"
function lessv
/usr/share/nvim/runtime/macros/less.sh $argv
end