Skip to content
/ dotfiles Public

My configuration files and scripts for Bash, Git, Vim, etc.

Notifications You must be signed in to change notification settings

d13r/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Installation on Linux

cd
wget djm.me/dot
. dot

Configuration

Custom Git config

If it is a work machine, override my name and email address:

setup identity [email protected] 'Dave Miller'

Custom prompt message

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.

Uninstallation

source ~/.dotfiles/uninstall

Note: This is rarely tested and may not delete everything.

Windows Subsystem for Linux (WSL)

Installation on WSL

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 Debian from the Microsoft Store. Run it, wait while it completes setup, set a username and password when prompted, then quit.

Put this in c:\Users\dave\.wslconfig:

[wsl2]
guiApplications=false
networkingMode=mirrored

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 Debian.

Enter a username and password when prompted.

Then install dotfiles:

sudo apt update
sudo apt install wget
wget djm.me/dot
. dot

When the installation completes, it will close the terminal. Run Debian again, then install various tools (including Tmux):

setup linux

Reinstalling Debian on WSL

To completely reinstall Debian on WSL, close WSL, open PowerShell and run:

wsl --unregister Debian

Then re-launch Debian from the Start Menu - it will take a few minutes to reinstall.