Change some fish stuff

This commit is contained in:
Uttarayan Mondal
2021-06-01 15:10:11 +05:30
parent 76f211a525
commit e8932b1790
3 changed files with 14 additions and 1 deletions

View File

@@ -1,10 +1,17 @@
function man
set oldIFS "$IFS"
set IFS ""
set page (/usr/bin/man "$argv" | col -b)
set page (/usr/bin/man $argv | col -b)
if ! [ -z "$page" ]
echo "$page" | nvim -R -c 'set ft=man nomod nolist' -
end
set IFS "$oldIFS"
end
function __fish_command_not_found_handler --on-event fish_command_not_found
echo "fish: Unknown command '$argv'"
end
thefuck --alias | source