Skip to content

Commit 963d6ed

Browse files
authored
fix: zsh with oh-my-zsh (#400)
* fix: zsh with oh-my-zsh Signed-off-by: Chapman Pendery <cpendery@vt.edu> * fix: lint Signed-off-by: Chapman Pendery <cpendery@vt.edu> * fix: failing tests Signed-off-by: Chapman Pendery <cpendery@vt.edu> * fix: e2e & rendering bugs Signed-off-by: Chapman Pendery <cpendery@vt.edu> * fix: only use separate zdotdirs when testing to avoid duplicating configs for users every session Signed-off-by: Chapman Pendery <cpendery@vt.edu> --------- Signed-off-by: Chapman Pendery <cpendery@vt.edu>
1 parent 57b464c commit 963d6ed

13 files changed

Lines changed: 1170 additions & 116 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,51 @@ jobs:
1919
with:
2020
node-version: 22.21.1
2121

22+
- name: setup macOS shells
23+
if: matrix.os == 'macos-latest'
24+
shell: bash
25+
run: |
26+
brew install fish
27+
brew install zsh
28+
29+
for dir in /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/share/zsh /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/share/fish /opt/homebrew/share/fish/vendor_completions.d; do
30+
[ -d "$dir" ] && sudo chmod g-w "$dir"
31+
done
32+
33+
- name: setup linux shells
34+
if: matrix.os == 'ubuntu-latest'
35+
shell: bash
36+
run: |
37+
sudo apt-add-repository ppa:fish-shell/release-3
38+
sudo apt-get update
39+
sudo apt install fish zsh
40+
41+
sudo chmod -R 755 /usr/share/zsh/vendor-completions
42+
sudo chown -R root:root /usr/share/zsh/vendor-completions
43+
sudo chmod -R 755 /usr/share/zsh
44+
sudo chown -R root:root /usr/share/zsh
45+
46+
- name: setup windows shells
47+
if: matrix.os == 'windows-latest'
48+
shell: pwsh
49+
run: |
50+
python -m pip install 'xonsh[full]'
51+
52+
- name: setup oh-my-zsh
53+
if: matrix.os != 'windows-latest'
54+
shell: bash
55+
run: |
56+
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended --keep-zshrc
57+
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"
58+
2259
- run: npm ci
2360

2461
- run: npm run lint
2562

2663
- run: npm test
2764

28-
- run: npm run build
65+
- run: npm run build
66+
67+
- run: npm link
68+
69+
- run: npm run test:e2e

0 commit comments

Comments
 (0)