diff --git a/usr/bin/clone b/usr/bin/clone index 80fbd26..4ada8c1 100755 --- a/usr/bin/clone +++ b/usr/bin/clone @@ -7,12 +7,9 @@ clone () if [ $# -ne "1" ]; then PROFIL_NAME="$1"; PROJECT_NAME="$2"; - git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git; else - PROFIL_NAME=painpain PROJECT_NAME="$1"; - git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git; fi - git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git; + git clone --recurse-submodules $URL$PROFIL_NAME/$PROJECT_NAME.git; } clone "$@" diff --git a/usr/bin/pycharm b/usr/bin/pycharm new file mode 100755 index 0000000..b74ae8a --- /dev/null +++ b/usr/bin/pycharm @@ -0,0 +1,2 @@ +#!/usr/bin/bash +~/code/pycharm-2025.3.3/bin/pycharm diff --git a/usr/bin/src b/usr/bin/src new file mode 100755 index 0000000..c5db6d6 --- /dev/null +++ b/usr/bin/src @@ -0,0 +1,25 @@ +#!/usr/bin/bash + +if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then + echo "Usage: $0 arg1 [arg2] [arg3]" + exit 1 +fi + +# interactive session check +if [ -t 0 ]; then + echo -n "Delete existing output files? [y/N]: " + read ans + case "$ans" in + y|Y) rm -f *.school ;; + *) echo "Aborted"; exit 0 ;; + esac +fi + +# process input file +while IFS= read -r line; do + new_f="${line%.*}.school" + f > "$new_f" +done < "$FILE" + +exit 0 +