From 2af39651794878c769d5398a00c69b1547aad982 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 14 Apr 2022 17:38:14 +0530 Subject: [PATCH] fish: functions/rmdot: Add a helper to delete all dot files --- fish/.config/fish/functions/rmdot.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fish/.config/fish/functions/rmdot.fish diff --git a/fish/.config/fish/functions/rmdot.fish b/fish/.config/fish/functions/rmdot.fish new file mode 100644 index 0000000..d10f6fc --- /dev/null +++ b/fish/.config/fish/functions/rmdot.fish @@ -0,0 +1,7 @@ +function rmdot --description "Remove all dot files from GST_DEBUG_DUMP_DOT_DIR" + if test -d "$GST_DEBUG_DUMP_DOT_DIR" + for i in "$GST_DEBUG_DUMP_DOT_DIR"/*.dot + rm $i + end + end +end