Invoke-WebRequest https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip -outfile c:/Temp/CascadiaCode.zip
Expand-Archive -LiteralPath 'c:/Temp/CascadiaCode.zip' -DestinationPath c:/temp/
git config --global http.sslBackend schannel
Connect-AzAccount -UseDeviceAuthentication
Set-AzContext -Name 'short-name' -Subscription 'sub_name' -Tenant '00000000-0000-0000-0000-000000000000'
Copy-Item "C:\DATA\repos\dotfiles\Microsoft.PowerShell_profile.ps1" -destination "C:\Users\$env:username\Documents\PowerShell\Microsoft.PowerShell_profile.ps1"
Copy-Item "C:\DATA\repos\dotfiles\Microsoft.Terminal\settings.json" -destination "C:\Users\$env:username\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"
Install-Module Terminal-Icons
ssh-keygen -t ed25519 -C "your_email@example.com"
As Admin
Get-Service ssh-agent | Set-Service -StartupType Automatic
Start the service
Start-Service ssh-agent
Now load your key files into ssh-agent
ssh-add ~\.ssh\id_ed25519
cd ~
git clone https://github.com/magnusmccune/dotfiles
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh
add
# OhMyPosh Setup
eval "$(oh-my-posh --init --shell bash --config ~/dotfiles/magnuslinux.profile.omp.json)"
to bashrc
sudo timedatectl set-timezone America/...
Install HomeBrew and Dependencies
# Install Command Line Tools for Xcode
sudo xcode-select --install
#Install HomeBrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Add /usr/local/bin
to global path /etc/paths
Update .zshrc
echo 'if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
eval "$(oh-my-posh init zsh --config 'https://raw.githubusercontent.com/magnusmccune/dotfiles/main/magnus.profile.omp.json')"
# eval "$(oh-my-posh init zsh --config '~/projects/personal/dotfiles/magnus.profile.omp.json')"
fi' >> ~/.zshrc
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(jenv init -)"' >> ~/.zshrc
echo 'alias d=docker
alias h=helm
alias k=kubectl
alias t=terraform
alias a=ansible
alias mp=multipass' >> ~/.zshrc
Add to ~/.gitconfig
[includeIf "gitdir:~/Projects/personal/"]
path = .gitconfig-personal
git config -f ~/.gitconfig-personal user.email john.doe@personal.com
ln -s /Users/$USER/projects/personal/dotfiles/BrewFile /Users/$USER/BrewFile