02-01-2019, 06:48 AM
(This post was last modified: 02-01-2019, 07:19 AM by DeepThought.)
No probs, what you can do is check .profile in your home folder has the following lines:
Then create a bin dir in your home folder.
put all your bash scripts in bin and make them executable
You may need a reboot to make sure everything works.
You should now be able to start any script in bin via terminal in any folder with:
Make life easier by creating launchers for you bash scripts
Have fun
Code:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
Then create a bin dir in your home folder.
Code:
mkdir ~/bin
put all your bash scripts in bin and make them executable
Code:
chmod +x ~/bin/*
You may need a reboot to make sure everything works.
You should now be able to start any script in bin via terminal in any folder with:
Code:
scriptname.sh
Make life easier by creating launchers for you bash scripts
Have fun
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )