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"
|
||||
|
@ -55,7 +59,7 @@ abbr -a rm --position command "rm -rf"
|
|||
# └─ recursively remove directories and files
|
||||
|
||||
# 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 egrep --position command "egrep --color=auto"
|
||||
|
||||
|
|
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