Skip to content

This provides an OPINIONATED collection of scripts to set up oh-my-zsh and oh-my-posh to your Azure Cloud Shell environment

License

Notifications You must be signed in to change notification settings

justinyoo/oh-my-azure-cloud-shell

Repository files navigation

Oh My Azure Cloud Shell

This provides an OPINIONATED collection of scripts to set up oh-my-zsh and oh-my-posh to your Azure Cloud Shell environment.

Getting Started

For oh-my-zsh

If you want to apply oh-my-zsh to your Azure Cloud Shell environment, follow the steps below:

  1. Open your Azure Cloud Shell.

  2. Make sure you are in the bash prompt. If you are in the PowerShell prompt, enter bash to switch the prompt.

  3. Clone this repository to your Azure Cloud Shell.

    git clone https://github.com/justinyoo/oh-my-azure-cloud-shell.git ~/oh-my-azure-cloud-shell
  4. Run the following commands and follow the instruction on the screen.

    ~/oh-my-azure-cloud-shell/install.sh

    The command above will install the Spaceship theme by default. If you prefer the Powerlevel10k theme, run the following command:

    # Turn on the clock feature
    ~/oh-my-azure-cloud-shell/install.sh -t p10k -c
    
    # Turn off the clock feature
    ~/oh-my-azure-cloud-shell/install.sh -t p10k
  5. Restart your Azure Cloud Shell.

  6. If you want to turn on or off the clock feature while using the Powerlevel10k theme, run the following command:

    # Turn on the clock feature
    ~/oh-my-azure-cloud-shell/switch-p10k-clock.sh -c
    source ~/.p10k.zsh
    
    # Turn off the clock feature
    ~/oh-my-azure-cloud-shell/switch-p10k-clock.sh
    source ~/.p10k.zsh

For oh-my-posh

If you want to apply oh-my-posh to your Azure Cloud Shell environment, follow the steps below:

  1. Open your Azure Cloud Shell.

  2. Make sure you are in the PowerShell prompt. If you are in the bash prompt, enter pwsh to switch the prompt.

  3. Clone this repository to your Azure Cloud Shell.

    git clone https://github.com/justinyoo/oh-my-azure-cloud-shell.git ~/oh-my-azure-cloud-shell
  4. Run the following commands and follow the instruction on the screen.

    ~/oh-my-azure-cloud-shell/install.ps1

    The command above will install the Spaceship theme by default. If you prefer the Powerlevel10k - Rainbow theme, run the following command:

    # Turn on the clock feature
    ~/oh-my-azure-cloud-shell/install.ps1 -Theme p10k -WithClock
    
    # Turn off the clock feature
    ~/oh-my-azure-cloud-shell/install.ps1 -Theme p10k
  5. If you want to turn on or off the clock feature while using the Powerlevel10k - Rainbow theme, run the following command:

    # Turn on the clock feature
    ~/oh-my-azure-cloud-shell/switch-p10k-clock.ps1 -WithClock
    . $PROFILE
    
    # Turn off the clock feature
    ~/oh-my-azure-cloud-shell/switch-p10k-clock.ps1
    . $PROFILE

Elements of oh-my-zsh

Elements of oh-my-posh

About

This provides an OPINIONATED collection of scripts to set up oh-my-zsh and oh-my-posh to your Azure Cloud Shell environment

Topics

Resources

License

Stars

Watchers

Forks