Created
April 16, 2023 20:16
-
-
Save techdecline/8278961fb0e6ea0075998d7c28ef608a to your computer and use it in GitHub Desktop.
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
| # Download Oh my posh | |
| 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 | |
| # Download themes | |
| mkdir ~/.poshthemes | |
| wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip | |
| unzip ~/.poshthemes/themes.zip -d ~/.poshthemes | |
| chmod u+rw ~/.poshthemes/*.omp.* | |
| rm ~/.poshthemes/themes.zip | |
| # Install Fonts | |
| oh-my-posh font install Meslo | |
| echo '"terminal.integrated.fontFamily": "MesloLGM NF"' > ~/.vscode-remote/data/Machine/settings.json | |
| # Install Modules | |
| Install-Module PSReadline -AllowPrerelease -Force | |
| Install-Module -Name Terminal-Icons -Force | |
| # Create Profile | |
| New-Item $Profile -Force | |
| echo 'oh-my-posh init pwsh --config /home/vscode/.poshthemes/cloud-native-azure.omp.json | Invoke-Expression' > $Profile | |
| echo 'Import-Module Terminal-Icons && Set-PSReadLineOption -PredictionSource History && set-PSReadLineOption -PredictionViewStyle ListView' >> $Profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment