fish: functions: Open dot graphs by default in xdot

This commit is contained in:
Sanchayan Maity 2022-11-05 14:37:37 +05:30
parent be9e8449a0
commit a827d25ac4
3 changed files with 3 additions and 0 deletions

View file

@ -4,4 +4,5 @@ function dotP --description 'Generate Pipewire dot graph for all nodes'
if test "$argv[1]" = -c
dot -Tsvg $output.dot >$output.svg
end
xdot $output.dot &
end

View file

@ -10,5 +10,6 @@ function dotg --description 'Generate gstreamer dot graph for selected file'
if test -n "$result"
dot -Tsvg "$result" -O
mv "$result".svg ~/Pictures/gstreamer
xdot $result &
end
end

View file

@ -4,4 +4,5 @@ function dotp --description 'Generate Pipewire dot graph for linked nodes'
if test "$argv[1]" = -c
dot -Tsvg $output.dot >$output.svg
end
xdot $output.dot &
end