Bootstrap ubuntu 18.04 under WSL for development, these scripts should run as your normal user and not as root!
It is also recommended that you set up your user for passwordless sudo using the visudo tool so that you do not need to enter your password to run sudo
when the installation script is executing.
git clone https://github.com/paulalex/wsl_bootstrap.git
source setup.sh
To pull in new changes and 're-source' .bashrc you need only run the following command (do not run setup.sh again):
source sync.sh
Currently the .gitconfig contains my name and email address so ensure that you change this:
[user] name = Paul Ockleford
email = paul.ockleford@edfenergy.com
Below you will find a list of all the software, aliases and bash commandline tools that are installed when you run setup.sh, running sync.sh will only bring in new changes from git and then re-source .bashrc so that your shell is updated with any new environment variables and aliases etc.
python 3.8Node 12.xNPM 6TfenvServerlessDocker 19.3Docker Compose 1.17
aws-clisoftware-properties-commonca-certificatesapt-transport-httpsjqtreerenamegit-extraspython3.8-devunzip
mcd()- Make directory and enter itenvup()- Load a.envfile into your shell sessionextract()- Handle most common compression file extractions
alias python="python3.8"alias ..="cd .."alias ...="cd ../.."alias ....="cd ../../.."alias ~="cd ~"alias bk="cd -"alias ll="ls -al"alias lll="ls -latrhF"alias ln="ln -v"alias reload="source ~/.bashrc"alias mkdir="mkdir -p"alias files="du -hs * | sort -rh"alias path='echo $PATH | tr -s ":" "\n"'alias c="clear"
Additional configuration is performed for git, git-extras is installed and git is aliased as g and when used alone runs git status, when used in conjunction with any other valid git command will execute the command.
Autocomplete is set up for g and your current checked out git branch is added to your terminal prompt, e.g:
wsl_bootstrap (master) $
The following aliases are installed for git:
hist = log --all --graph --decorate --onelineco = checkoutno = show --name-onlyst = statusgi = initga = add -Ac = commitp = push