You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Amro Enhanced for Git and Python
I modified the Amro theme to add git status info and Python's venv info.
Features
Color Scheme
#45F1C2(cyan)#0CA0D8(blue)#14A5AE(teal)#FFA500(orange)#cd5e42(red-orange)#CD4277(pink)Screenshots
Installation
Save the configuration to a file (e.g.,
~/.config/ohmyposh/amro-enhanced.omp.json)Initialize in your shell:
For Zsh (add to
~/.zshrc):For Bash (add to
~/.bashrc):For Fish (add to
~/.config/fish/config.fish):For PowerShell (add to your
$PROFILE):Reload your shell or source the config file
Configuration
Click to expand full JSON configuration
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "newline": true, "segments": [ { "foreground": "#45F1C2", "style": "plain", "template": "\ueb99 {{ .UserName }} on", "type": "session" }, { "foreground": "#0CA0D8", "properties": { "folder_separator_icon": "/", "style": "full" }, "style": "plain", "template": " \uf07b {{ .Path }} ", "type": "path" }, { "foreground": "#14A5AE", "powerline_symbol": "\ue0b0", "properties": { "fetch_status": true, "fetch_upstream_icon": true, "status_formats": { "Added": "✚%d", "Modified": "✹%d", "Deleted": "✖%d", "Untracked": "?%d" } }, "style": "plain", "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \u25cf{{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b{{ .StashCount }}{{ end }} ", "type": "git" }, { "type": "python", "style": "plain", "foreground": "#FFA500", "template": "{{ if .Venv }}({{ .Venv }}) {{ end }}", "properties": { "display_mode": "context", "fetch_version": false, "folder_name_fallback": false } } ], "type": "prompt" }, { "alignment": "left", "newline": true, "segments": [ { "foreground": "#cd5e42", "style": "plain", "template": "\ue3bf ", "type": "root" }, { "foreground": "#CD4277", "style": "plain", "template": "# ", "type": "text" } ], "type": "prompt" } ], "version": 3 }Customization Tips
Change Colors
Modify the
foregroundvalues in each segment to match your terminal theme.Hide Python Version
The theme already has
fetch_version: falseto keep it clean. Set totrueif you want to see Python version.Modify Path Display
Change
"style": "full"in the path segment to:"folder"- Show only current folder"short"- Shortened path"mixed"- Hybrid approachCustomize Git Status Icons
Modify the
status_formatsobject to use different symbols:Show Virtual Environment Differently
To show parent folder name instead of venv folder name, set:
Beta Was this translation helpful? Give feedback.
All reactions