diff --git a/configs/shells/bash/macros.sh b/configs/shells/bash/macros.sh index 2a575d3..d3519ec 100644 --- a/configs/shells/bash/macros.sh +++ b/configs/shells/bash/macros.sh @@ -223,6 +223,18 @@ ewconfig-run() { cd $cwd } +# Re-run the install script from anywhere +ewconfig-reinstall() { + # Require an argument (linux, windows) + if [ $# != 1 ]; then + echo "Usage: ewconfig-reinstall <platform>" + return 1 + fi + + # Execute through ewconfig-run + ewconfig-run sh ./install-$1.sh +} + # Define a function to emulate gh gh-emulated() { if [ $# != 3 ]; then