My "dotfiles" for linux/windows with bootstrap scripts
For Ubuntu distros... TODO other distros
with curl
sudo apt install curl -y >/dev/null
which curl >/dev/null
&& curl https://raw.githubusercontent.com/codyduong/dotfiles/main/linux/install.sh | bash
|| echo "\033[1;31mbootstrap failed\033[0m"
with git
git clone https://github.com/codyduong/dotfiles ~/dotfiles &&
dotfiles/linux/bootstrap.sh
- Powershell 7.2^
# in terminal/cmd winget install --id Microsoft.Powershell --source winget winget install --id Microsoft.Powershell.Preview --source winget
without git
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/codyduong/dotfiles/main/windows/setup/remote.ps1'))
with git
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/codyduong/dotfiles/main/windows/setup/git.ps1'))
TO-DO
- Problem: Powershell profile is not saved in start menu.
- Solution: Run powershell as admin, copy working
.lnk
cp "$PROFILE\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\PowerShell 7-preview (x64).lnk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PowerShell\"