Files
scripts/open_recursive.sh
2025-08-13 09:20:38 +02:00

21 lines
359 B
Bash

#! /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_recursive