A compact Oh My Zsh theme based on agnoster.
Changes from the stock theme:
- shows the machine hostname before the path
- keeps the path compact by showing only the current directory name
- keeps the original
agnostergit prompt behavior
- Oh My Zsh installed
- a Powerline or Nerd Font so the prompt glyphs render correctly
Run:
curl -fsSL https://raw.githubusercontent.com/dnviti/my-agnoster/main/install.sh | bashThe installer:
- copies
my-agnoster.zsh-themeinto~/.oh-my-zsh/custom/themes/ - updates
~/.zshrcto useZSH_THEME="my-agnoster"
Then reload your shell:
exec zshmkdir -p ~/.oh-my-zsh/custom/themes
curl -fsSL https://raw.githubusercontent.com/dnviti/my-agnoster/main/my-agnoster.zsh-theme \
-o ~/.oh-my-zsh/custom/themes/my-agnoster.zsh-theme
sed -i.bak 's/^ZSH_THEME=.*/ZSH_THEME="my-agnoster"/' ~/.zshrc
exec zshThis theme sources the stock agnoster theme from Oh My Zsh, so it is not a standalone prompt theme for plain zsh setups without Oh My Zsh.