zsh-users / antigen

The plugin manager for zsh.
http://antigen.sharats.me
MIT License
8.01k stars 279 forks source link

ZSH theme not working in VSCode Dev container Integrated Terminal #745

Open ridhwaans opened 1 year ago

ridhwaans commented 1 year ago

Description

Using https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers Not sure if it is a permissions/vscode issue

Steps to reproduce

Minimal steps to reproduce this behavior. Example:

  1. Install VSCode Dev container extension, Attach to running container, Open Integrated terminal
  2. Clone antigen
    git clone https://github.com/zsh-users/antigen.git .zsh/bundle
  3. Make the ~/.zshrc file
    
    source $HOME/.zsh/bundle/bin/antigen.zsh

antigen use oh-my-zsh # Load the oh-my-zsh's library. antigen theme agnoster # Load the theme. antigen apply # Tell antigen that you're done.

4. Change shell to ZSH

sudo usermod -s $(which zsh) $(whoami) $(which zsh)

5. run `source ~/.zshrc`

Expected behavior:

Should see ohmyzsh theme and powerline color prompt

Actual behaviour:

robbyrussell/oh-my-zsh is installed! Antigen: Theme "agnoster" is already active. name%

## Software version

Antigen develop (d1dd78b)
Revision date: 2018-01-15 14:37:21 -0300

zsh 5.8.1 (aarch64-unknown-linux-gnu)
Linux 787ced156b71 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Ubuntu 22.04 on VSCode Dev Container Preview build

## Configuration

.zshrc

source $HOME/.zsh/bundle/bin/antigen.zsh

antigen use oh-my-zsh # Load the oh-my-zsh's library. antigen theme agnoster # Load the theme. antigen apply # Tell antigen that you're done.



## More information

Screenshot or any other information you may find relevant to troubleshoot the issue.
ridhwaans commented 1 year ago

I think the issue is gitconfig started to use ssh

[url "git@github.com:"]
     pushInsteadOf = https://github.com/

bin/antigen.zsh and local setup was supposed to be over https

[submodule ".zsh/bundle"]
    path = .zsh/bundle
    url = https://github.com/zsh-users/antigen.git

Switching to pushInsteadOf seems to work