diff --git a/dot_config/fish/conf.d/20-aliases.fish b/dot_config/fish/conf.d/20-aliases.fish index 2e6613b..7d0c20d 100644 --- a/dot_config/fish/conf.d/20-aliases.fish +++ b/dot_config/fish/conf.d/20-aliases.fish @@ -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" diff --git a/dot_config/fish/conf.d/30-less.fish b/dot_config/fish/conf.d/30-less.fish new file mode 100644 index 0000000..4874f1a --- /dev/null +++ b/dot_config/fish/conf.d/30-less.fish @@ -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