bash-profile
Version:
Keep tracked and up-to-dated my custom aliases for .bash_profile
25 lines (19 loc) • 1.13 kB
JavaScript
;
const shell = require("shelljs");
install();
function install() {
shell.exec('mv ~/.bash_profile ~/.bash_profile.bak 2>/dev/null');
shell.exec(`cp -R "${__dirname}/dist/." ~/`);
shell.echo(' **********************************************************************');
shell.echo(' * Everything is installed. *');
shell.echo(' * *');
shell.echo(' * Main Commands: *');
shell.echo(' * - reset: reload your current bash_profile => reset *');
shell.echo(' * - change: change to desired pre-existing profile => change home *');
shell.echo(' * *');
shell.echo(' * If this is your first time, restart your terminal *');
shell.echo(' * *');
shell.echo(' **********************************************************************');
shell.echo('');
}