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. # Default command options.
abbr -a cp --position command "cp -iv" abbr -a cp --position command "cp -iv"
@ -55,7 +59,7 @@ abbr -a rm --position command "rm -rf"
# └─ recursively remove directories and files # └─ recursively remove directories and files
# Colored grep output. # Colored grep output.
abbr -a grep --position command "grep --color=auto" abbr -a grep --position command "grep --color=auto"
abbr -a fgrep --position command "fgrep --color=auto" abbr -a fgrep --position command "fgrep --color=auto"
abbr -a egrep --position command "egrep --color=auto" abbr -a egrep --position command "egrep --color=auto"

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