add new scripts

This commit is contained in:
jonathan.wyss
2025-08-13 09:19:23 +02:00
parent dcbfb937bf
commit 4319445cd3
3 changed files with 38 additions and 0 deletions

20
open_recursive.sh Normal file
View File

@@ -0,0 +1,20 @@
#! /bin/bash
function open_recursive {
PATH1=$1
FLAG1=$2
ARG1=$3
if [ -z "$PATH1 " ];then
echo "Path must not be empty"
fi
if [ $FLAG1 == "-f" ] ; then
nvim -p $(find $PATH1 -type f -name "*$ARG1")
else
echo no option given
echo "open_recursice PATH -[f] [filetype]"
fi
}
open_recursice