Skip to content

Commit

Permalink
fish: vfunc: Show Python scripts instead of the wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Jan 27, 2024
1 parent ad8adfe commit c977ac1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fish/functions/vfunc.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
# Copyright (C) 2022-2023 Nathan Chancellor

function vfunc -d "View function defintion in fish with a pager"
type $argv &| bat --color always --language fish --style plain
set func_file $PYTHON_SCRIPTS_FOLDER/$argv.py
if test -f "$func_file"
vw -c $func_file
else
type $argv &| bat --color always --language fish --style plain
end
end

0 comments on commit c977ac1

Please sign in to comment.