-
Star
(235)
You must be signed in to star a gist -
Fork
(167)
You must be signed in to fork a gist
-
-
Save shanselman/1f69b28bfcc4f7716e49eb5bb34d7b2c to your computer and use it in GitHub Desktop.
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, | |
"segments": [ | |
{ | |
"type": "path", | |
"style": "diamond", | |
"powerline_symbol": "", | |
"invert_powerline": false, | |
"foreground": "#ffffff", | |
"background": "#ff479c", | |
"leading_diamond": "", | |
"trailing_diamond": "", | |
"properties": { | |
"prefix": " ", | |
"style": "folder" | |
} | |
}, | |
{ | |
"type": "git", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"invert_powerline": false, | |
"foreground": "#193549", | |
"background": "#fffb38", | |
"leading_diamond": "", | |
"trailing_diamond": "", | |
"properties": { | |
"display_status": true, | |
"display_stash_count": true, | |
"display_upstream_icon": true | |
} | |
}, | |
{ | |
"type": "dotnet", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"invert_powerline": false, | |
"foreground": "#ffffff", | |
"background": "#6CA35E", | |
"leading_diamond": "", | |
"trailing_diamond": "", | |
"properties": { | |
"display_version": true, | |
"prefix": " " | |
} | |
}, | |
{ | |
"type": "root", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"invert_powerline": false, | |
"foreground": "#ffffff", | |
"background": "#ffff66", | |
"leading_diamond": "", | |
"trailing_diamond": "", | |
"properties": null | |
}, | |
{ | |
"type": "exit", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"invert_powerline": false, | |
"foreground": "#ffffff", | |
"background": "#2e9599", | |
"leading_diamond": "", | |
"trailing_diamond": "", | |
"properties": { | |
"always_enabled": true, | |
"color_background": true, | |
"display_exit_code": false, | |
"error_color": "#f1184c", | |
"prefix": " " | |
} | |
} | |
] | |
} | |
] | |
} |
Thank you @shanselman for your hard work. I followed this tutorial before, and it worked like a charm.
I got my new machine, so I wanted to apply it again, but something weird is happening. The oh-my-posh.json file for unknown reason is being replaced and the old version kept as a backup file and the heart and other icons are not working anymore, see my screenshot. I made the Jason file for Read-Only and VSCode is unable to change it anymore but that didn't fix the problem even it stopped the VSCode from changing the file content.
Any reason for that?
Thank you @shanselman for your hard work. I followed this tutorial before, and it worked like a charm. I got my new machine, so I wanted to apply it again, but something weird is happening. The oh-my-posh.json file for unknown reason is being replaced and the old version kept as a backup file and the heart and other icons are not working anymore, see my screenshot. I made the Jason file for Read-Only and VSCode is unable to change it anymore but that didn't fix the problem even it stopped the VSCode from changing the file content. Any reason for that?
I think I figured out what's the problem, I just replaced the oh-my-posh Jason file with the Theme file from the oh-my-posh website.
https://ohmyposh.dev/docs/themes
I think I figured out what's the problem, I just replaced the oh-my-posh Jason file with the Theme file from the oh-my-posh website.
https://ohmyposh.dev/docs/themes
@shanselman , I love these little details. I am modifying this to show a prompt segment in one line and type commands on the next line. But when I do that, tab for completing the path from suggestion is not working. It auto-replaces the CD with the Path.
and after pressing tab -
can you please help me?
json file -