Skip to content

Instantly share code, notes, and snippets.

@corentinbettiol
Last active January 22, 2022 23:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corentinbettiol/21a6d4e942a0ee58d51acb7996697a88 to your computer and use it in GitHub Desktop.
Save corentinbettiol/21a6d4e942a0ee58d51acb7996697a88 to your computer and use it in GitHub Desktop.
Install agnoster theme in zsh in docker from vscode console.
  1. Install the fonts on your computer:

    git clone https://github.com/powerline/fonts.git
    cd fonts
    ./install.sh
    cd .. && rm -rf fonts
  2. Then, open the settings (ctrl+p > "settings json" > enter) in vscode.

    Search for terminal.integrated.fontFamily value, and set it to "Roboto Mono for Powerline" (or any of those font families).

  3. Execute this script (source):

    # save current zshrc
    mv ~/.zshrc ~/.zshrc.bak
    
    sudo sh -c "$(wget -O- https://raw.githubusercontent.com/deluan/zsh-in-docker/master/zsh-in-docker.sh)" -- \
        -t agnoster
    
    # remove newly created zshrc
    rm -f ~/.zshrc
    # restore saved zshrc
    mv ~/.zshrc.bak ~/.zshrc
    # update theme
    sed -i '/^ZSH_THEME/c\ZSH_THEME="agnoster"' ~/.zshrc
  4. Reload vscode: ctlr+p > "reload Window"

  5. thats all folks!

screenshot agnoster vscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment