-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: first integration of several changes from wsl dotfiles
- Loading branch information
Showing
28 changed files
with
1,369 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
syn match markdownIgnore "\v\w_\w" | ||
set nocursorline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright Massamba Sow <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,60 @@ | ||
# Device installation scripts for Mac and Windows (WSL) | ||
## Quickly Get Set Up with These Dotfiles | ||
|
||
This repository was inspired by [Mathias Bynens' dotfiles](https://github.com/mathiasbynens/dotfiles) repository and adapted from [Zell Liew's](https://github.com/zellwk/dotfiles). | ||
This repository was inspired by [Mathias Bynens' dotfiles](https://github.com/mathiasbynens/dotfiles) repository and adapted from [Zell Liew's](https://github.com/zellwk/dotfiles) and from [Nick Janetakis's dotfiles](https://github.com/nickjj/dotfiles.git). | ||
Although I copied many things, I also deleted/updated many things to suit my custom installation. Use this at your own risk! | ||
|
||
Here are the installation instructions for Mac and Windows (WSL) | ||
|
||
- [Mac instructions](mac.md) | ||
- [Windows (WSL) instructions](windows.md) | ||
- [Windows (WSL) and Linux instructions](linux-wsl.md) | ||
|
||
Have a suggestion? [Please let me know!](TODO 2 Add link) | ||
```sh | ||
# Create your own personal ~/.gitconfig.user file. After copying the file, | ||
# you should edit it to have your name and email address so git can use it. | ||
cp ~/dotfiles/.gitconfig.user ~/.gitconfig.user | ||
``` | ||
|
||
Optionally confirm that a few things work after closing and re-opening your | ||
terminal: | ||
|
||
```sh | ||
# Sanity check to see if you can run some of the tools we installed. | ||
ruby --version | ||
node --version | ||
# ansible --version | ||
# aws --version | ||
# terraform --version | ||
|
||
# Check to make sure git is configured with your name, email and custom settings. | ||
git config --list | ||
|
||
# If you're using Docker Desktop with WSL 2, these should be accessible too. | ||
docker info | ||
docker-compose --version | ||
``` | ||
|
||
#### Using WSL 1 or WSL 2? | ||
|
||
In addition to the Linux side of things, there's a few config files that I have | ||
in various directories of this dotfiles repo. These have long Windows paths. | ||
|
||
It would be expected that you copy those over to your system while replacing | ||
"Mass" with your Windows user name if you want to use those things, such as my Microsoft Terminal `settings.json` file and others. | ||
Some of the paths may also contain unique IDs too, so adjust them as needed on your end. | ||
|
||
Some of these configs expect that you have certain programs or tools installed | ||
on Windows. | ||
|
||
Pay very close attention to the `c/Users/Mass/.wslconfig` file because it has | ||
values in there that you will very likely need to change before using it. | ||
[This commit | ||
message](https://github.com/nickjj/dotfiles/commit/d0f1fc2622204b809cf7fcbb1a82d45b451064c4) | ||
goes into the details. | ||
|
||
Also, you should reboot to activate your `/etc/wsl.conf` file (symlinked | ||
earlier). That will be necessary if you want to access your mounted drives at | ||
`/c` or `/d` instead of `/mnt/c` or `/mnt/d`. | ||
|
||
|
||
Have a suggestion? [Please let me know!](mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[wsl2] | ||
memory=6GB # Make sure you have this amount available to use! | ||
swapFile=D:\\wsl2-swap.vhdx # I put mine off my SSD, but this is optional. | ||
|
||
# Another option is to disable swap but if the VM goes out of memory, the | ||
# OOM killer might start killing important processes or the VM may crash. | ||
# | ||
# Uncomment the line below this to use no swap file at all in the WSL 2 VM. | ||
#swap=0 |
Oops, something went wrong.