cd
wget djm.me/dot
. dot
If it is a work machine, override my name and email address:
setup-identity [email protected] 'Dave Miller'
Add one of these to .bashrc_local
:
prompt --live 'Live server'
prompt --staging 'Staging server'
prompt --dev 'Development server'
prompt --special 'Something else'
prompt --bg=magenta --fg=lwhite --bold 'Custom styles'
The short options are -l
(live), -s
(staging), -d
(dev) and -x
(special).
See .bash/style for the supported custom styles.
Optionally add --titlebar
(-t
) to display the same message in the titlebar.
source ~/.dotfiles/uninstall
Note: This is rarely tested and may not delete everything.
Click Start, search for features
and select "Turn Windows features on or off". Tick "Windows Subsystem for Linux" and click OK. Reboot.
Install the Fira Code font - download and copy the ttf/*.ttf
files to C:\Windows\Fonts
.
Install Windows Terminal from the Microsoft Store.
Install Ubuntu from the Microsoft Store. Run it, wait while it completes setup, set a username and password when prompted, then quit.
Disable WSLg by putting this in c:\Users\dave\.wslconfig
(source):
[wsl2]
guiApplications=false
Install VcXsrv, then run XLaunch from the Start Menu. Accept the default settings except untick "Primary Selection". Save the configuration into the shell:startup
folder so it's started automatically.
Launch Windows Terminal from the start menu, click the tab dropdown menu, then Ubuntu.
Enter a username and password when prompted.
Then install dotfiles as normal.
To completely reinstall Ubuntu on WSL, close WSL, open PowerShell and run:
wsl --unregister Ubuntu
Then re-launch Ubuntu from the Start Menu - it will take a few minutes to reinstall.