Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Oh My Azure Cloud Shell
sh -c "$(curl -fsSL \
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Plugin: zsh-completions
git clone https://github.com/zsh-users/zsh-completions.git \
~/.oh-my-zsh/custom/plugins/zsh-completions
# Plugin: zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
# Plugin: zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions.git \
~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
# Theme: Spaceship
git clone https://github.com/spaceship-prompt/spaceship-prompt.git \
~/.oh-my-zsh/custom/themes/spaceship-prompt --depth=1
ln -s ~/.oh-my-zsh/custom/themes/spaceship-prompt/spaceship.zsh-theme \
~/.oh-my-zsh/custom/themes/spaceship.zsh-theme
# Theme: Powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git \
~/.oh-my-zsh/custom/themes/powerlevel10k --depth=1
ln -s ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme \
~/.oh-my-zsh/custom/themes/powerlevel10k.zsh-theme
# Download the GitHub repository
git clone https://github.com/justinyoo/oh-my-azure-cloud-shell.git ~/oh-my-azure-cloud-shell
# Install oh-my-zsh with the theme of "Spaceship"
~/oh-my-azure-cloud-shell/install.sh -t spaceship
# Install oh-my-zsh with the theme of "Powerlevel10k"
~/oh-my-azure-cloud-shell/install.sh -t p10k
# Turn on the clock feature
~/oh-my-azure-cloud-shell/switch-p10k-clock.sh -c
# Turn off the clock feature
~/oh-my-azure-cloud-shell/switch-p10k-clock.sh
Install-Module oh-my-posh -Scope CurrentUser -Repository PSGallery -Force
Import-Module oh-my-posh -Scope Local -Force
# Theme: Spaceship
Set-PoshPrompt -Theme spaceship
# Theme: Powerlevel10k - Rainbow
Set-PoshPrompt -Theme powerlevel10k_rainbow
Install-Module Terminal-Icons -Scope CurrentUser -Repository PSGallery -Force
Import-Module Terminal-Icons -Scope Local -Force
if (!(Test-Path -Path $PROFILE)) {
New-Item -ItemType File -Path $PROFILE -Force
}
# Theme: Spaceship
Write-Output "
Set-PoshPrompt -Theme spaceship
Import-Module Terminal-Icons -Scope Local -Force
" | Out-File -FilePath $PROFILE -Encoding UTF8 -Append -Force
# Theme: Powerlevel10k - Rainbow
Write-Output "
Set-PoshPrompt -Theme powerlevel10k_rainbow
Import-Module Terminal-Icons -Scope Local -Force
" | Out-File -FilePath $PROFILE -Encoding UTF8 -Append -Force
# Download the GitHub repository
git clone https://github.com/justinyoo/oh-my-azure-cloud-shell.git `
~/oh-my-azure-cloud-shell
# Install oh-my-zsh with the theme of "Spaceship"
~/oh-my-azure-cloud-shell/install.ps1 -Theme spaceship
# Install oh-my-zsh with the theme of "Powerlevel10k - Rainbow"
~/oh-my-azure-cloud-shell/install.ps1 -Theme p10k
# Turn on the clock feature
~/oh-my-azure-cloud-shell/switch-p10k-clock.ps1 -WithClock
# Turn off the clock feature
~/oh-my-azure-cloud-shell/switch-p10k-clock.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment