Thanks to visit codestin.com
Credit goes to github.com

Skip to content

duanel/dev-pc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dev-pc

Developer setup scripts and steps for PC

Install Steps

Set-ExecutionPolicy Bypass -Scope Process -Force; ./setup-step-one.ps1

Set-ExecutionPolicy Bypass -Scope Process -Force; ./setup-step-two.ps1

Post Script Two steps

Base WSL Install

Initial Updates

Update Apt - BASH: sudo apt-get update Upgrade Apt packages - BASH: sudo apt-get upgrade

Install ZSH and Oh My ZSH

Install ZSH - BASH: sudo apt-get install zsh Install OhMyZSH (https://ohmyz.sh/) BASH: sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

  • Update Bash shell to use DejaVu Sans Powerline patched font (Windows Ubuntu shell, Properties, Font)

BASH: Use nano to edit ~/.zshrc, change ZSH_THEME to "agnoster"

BASH: Add Reload Alias to .zshrc alias reload="source ~/.zshrc"

BASH: Add Dev Alias to .zshrc alias dev="cd /mnt/c/dev"

WSL Dev Tools

NVM/Node for Linux (https://github.com/creationix/nvm) BASH:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Install Node/npm on Ubuntu (nvm install 10.16.3 && nvm install 12.10.0)

BASH: git config --global credential.helper cache

Setup ConEmu (Add -t zsh -l to end of Bash line for OhMyZSH)

If you have more than 1 WSL Distro installed...

Tell ConEmu which Distro to open specifically, or it will only ever use the default Distro

Find the GUID of your distribution in the registry under HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss. In my case, Debian distro has GUID {1f6b2238-ec8d-4066-8e2b-ee31ce97ad3f}. Modify task for your WSL by inserting after "--wsl" -C~ --distro-guid={DISTRO-GUID} -- Keep the curly's

Fedora Remix: set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/mnt -C~ --distro-guid={cd15edb3-2d91-4dcc-8b02-57a56f0d5629} -t zsh -l

WLinux: set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/mnt -C~ --distro-guid={98898fa5-4b79-4e30-9a73-2c1ae43e3d2c} -t zsh -l

About

Developer setup scripts and steps for PC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%