Created
September 10, 2019 14:42
-
-
Save reicheltp/70d674164a8d56367464d6f1dd000924 to your computer and use it in GitHub Desktop.
setup-pc.ps
This file contains hidden or 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
| # Allow Remote Execution Policy (this maybe already needed to run this script) | |
| Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
| # Install Scoop | |
| iwr -useb get.scoop.sh | iex | |
| # Use lessmsi to ensure it also run in any work environment | |
| scoop config MSIEXTRACT_USE_LESSMSI $true | |
| # Install core stuff | |
| scoop install 7zip git gpg | |
| # Install text tools | |
| scoop install vim bat | |
| # Add extras bucket | |
| scoop bucket add extras | |
| # Install posh-git | |
| scoop install posh-git | |
| # Create PS Profile | |
| new-item -force -path $PROFILE -value "" -type file | |
| # Setup PoshGit | |
| Import-Module posh-git | |
| Add-PoshGitToProfile -AllHosts | |
| Write "`$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '``n'`n" | Out-File $PROFILE -Append | |
| # Install PSReadline | |
| Write "Import-Module PSReadLine`nSet-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward`nSet-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward`n" | Out-File $PROFILE -Append | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment