I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
Then your organize.sh can move to ~/bin/organize and start with a cd ~/Downloads || exit line to make it work in the correct download directory. I often drop the .sh extension on common utility scripts myself, though it doesn't really matter as long as it has a shebang.
This might be simpler as a function or a script held in your
bindirectory.If you include the following in your
bashrcor equivalent, you can drop scripts into~/binand the system will check there first.Then your
organize.shcan move to~/bin/organizeand start with acd ~/Downloads || exitline to make it work in the correct download directory. I often drop the.shextension on common utility scripts myself, though it doesn't really matter as long as it has a shebang.Thank you. I did not know about this. Will add it to V2