Giter Club home page Giter Club logo

oh-my-azure-cloud-shell's Introduction

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

oh-my-azure-cloud-shell's People

Contributors

justinyoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oh-my-azure-cloud-shell's Issues

Update for oh-my-posh executable?

Thanks for making this available! Oh-my-posh has migrated to an executable. I was wondering if you'd already done the work to get it going in Cloud Shell with the new method and if you wouldn't mind sharing?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.