Skip to content

Commit 2cc503e

Browse files
committed
Use avit theme for zsh with fixed arrow
1 parent f2a31cf commit 2cc503e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

resources/tools/oh-my-zsh.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,9 @@ if ! hash zsh 2>/dev/null; then
2626
cd ..
2727
rm -rf fonts
2828
# Install plugins
29-
apt-get install -y --no-install-recommends autojump git-flow git-extras ncdu ctop htop
29+
apt-get install -y --no-install-recommends autojump git-flow git-extras ncdu htop
3030
pip install Pygments ranger-fm thefuck
3131
yes | sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
32-
# Install typewritten theme
33-
git clone https://github.com/reobin/typewritten.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/typewritten
34-
ln -s "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/typewritten/typewritten.zsh-theme" "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/typewritten.zsh-theme"
35-
ln -s "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/typewritten/async.zsh" "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/async"
3632
# Install powerlevel10k for instant prompt
3733
# git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
3834
# https://www.reddit.com/r/zsh/comments/dht4zt/make_zsh_start_instantly_with_this_one_weird_trick/
@@ -45,8 +41,17 @@ if ! hash zsh 2>/dev/null; then
4541
git clone https://github.com/chrissicool/zsh-256color ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-256color
4642
curl -fsSL -o $RESOURCES_PATH/instant-zsh.zsh https://gist.github.com/romkatv/8b318a610dc302bdbe1487bb1847ad99/raw
4743

44+
# Use avit theme instead of typewritten: Install typewritten theme
45+
# git clone https://github.com/reobin/typewritten.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/typewritten
46+
# ln -s "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/typewritten/typewritten.zsh-theme" "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/typewritten.zsh-theme"
47+
# ln -s "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/typewritten/async.zsh" "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/async"
48+
# \nexport TYPEWRITTEN_PROMPT_LAYOUT=\"pure\"\nexport TYPEWRITTEN_COLOR_MAPPINGS=\"primary:cyan\"
4849
# Other good themes: avit, clean
49-
printf "export source ZSH=\"$HOME/.oh-my-zsh\"\nZSH_THEME=\"typewritten\"\nexport TYPEWRITTEN_PROMPT_LAYOUT=\"pure\"\nexport TYPEWRITTEN_COLOR_MAPPINGS=\"primary:cyan\"\nDISABLE_AUTO_UPDATE=\"true\"\nZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=\"fg=245\"\nplugins=(git k extract cp pip yarn npm sudo zsh-256color supervisor rsync command-not-found autojump colored-man-pages git-flow git-extras httpie python zsh-autosuggestions history-substring-search zsh-completions zsh-syntax-highlighting)\nsource \$ZSH/oh-my-zsh.sh\nLS_COLORS=\"\"\nexport LS_COLORS\nalias pcat=\"pygmentize -g\"\neval \"\$(pyenv init -)\"\neval \"\$(pyenv virtualenv-init -)\"" > ~/.zshrc
50+
51+
# Fix red arrow problem with avit theme
52+
sed -i 's/fg\[red\]}.${fg\[white\]})%}▶/fg\[white\]}.${fg\[white\]})%}▶/g' ~/.oh-my-zsh/themes/avit.zsh-theme
53+
54+
printf "export source ZSH=\"$HOME/.oh-my-zsh\"\nZSH_THEME=\"avit\"\nDISABLE_AUTO_UPDATE=\"true\"\nZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=\"fg=245\"\nplugins=(git k extract cp pip yarn npm sudo zsh-256color supervisor rsync command-not-found autojump colored-man-pages git-flow git-extras httpie python zsh-autosuggestions history-substring-search zsh-completions zsh-syntax-highlighting)\nsource \$ZSH/oh-my-zsh.sh\nLS_COLORS=\"\"\nexport LS_COLORS\nalias pcat=\"pygmentize -g\"\neval \"\$(pyenv init -)\"\neval \"\$(pyenv virtualenv-init -)\"" > ~/.zshrc
5055

5156
# Also add fzf to plugins
5257
git clone --depth 1 https://github.com/junegunn/fzf.git $RESOURCES_PATH/.fzf

0 commit comments

Comments
 (0)