Open ghost opened 5 years ago
Would prefer if we used sed -i '/^randpw() /d' ~/.bash_aliases
as it doesn't assume the way that the old alias is setup.
Yep I suggest we base the sed
line off of the grep
commands.
For whoever picks this up, these are the jobs that need doing off of this:
grep -q -F
as it is now redundant
Currently you need to manually remove commands from bash_aliases for it to be re-created. The intention was to stop duplicate commands being set up.
We should be able to fix this update process issue and retain the no-duplicates aim by adding the following command before we set up new aliases:
sed -i '/randpw() { for i in/d' ~/.bash_aliases