I'm trying to get GitHub codespaces to recognize my dotfiles, to auto-setup zsh shell.
When I enter a codespace, either on the web or from VSCode the dotfiles have no effect. No error message either.
Here's what I've done
Created a public dotfiles repo on GitHub, containing
.zshrc
andsetup.sh
(contents below). Added the files directly via the "add file" on github.com, then copy/paste.Enabled auto-run dotfiles in Codespaces via github.com > settings > codespaces > use dotfiles = true (checkbox)
VSCode > settings > linux default shell > zsh
setup.sh
#!/bin/bash
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
cat .zshrc > $HOME/.zshrc
.zshrc
export ZSH="${HOME}/.oh-my-zsh"
ZSH_THEME="robbyrussell"
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(zsh-autosuggestions history-substring-search zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
PROMPT="*** zsh *** %~ "