From 7c58e5113940c3fa97c13be230377d1ae92f9daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Thu, 7 Nov 2024 19:41:41 +0100 Subject: [PATCH] [rename] script --- .config/scriptrc/rename.sh | 7 +++++++ .zshrc | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 .config/scriptrc/rename.sh diff --git a/.config/scriptrc/rename.sh b/.config/scriptrc/rename.sh new file mode 100644 index 0000000..9c357e4 --- /dev/null +++ b/.config/scriptrc/rename.sh @@ -0,0 +1,7 @@ +function rename() { + for file in $@; do + open $file + read newname + mv $file $newname + done +} diff --git a/.zshrc b/.zshrc index 6c1156e..26b5aa4 100755 --- a/.zshrc +++ b/.zshrc @@ -223,3 +223,5 @@ if [ -d "$HOME/.config/scriptrc" ]; then source $SCRIPTFILE done fi + +export STM32_PRG_PATH=/Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin \ No newline at end of file