Update .config/fish/conf.d/20-aliases.fish
Add .config/fish/conf.d/30-less.fish
This commit is contained in:
parent
bab7ebb524
commit
e4ec9ec8bd
2 changed files with 16 additions and 1 deletions
|
@ -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"
|
||||
|
|
11
dot_config/fish/conf.d/30-less.fish
Normal file
11
dot_config/fish/conf.d/30-less.fish
Normal 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
|
Loading…
Reference in a new issue