Skip to content

Commit

Permalink
added oh-my-posh config
Browse files Browse the repository at this point in the history
  • Loading branch information
varp committed Nov 7, 2024
1 parent cd261fa commit f0dbe37
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
51 changes: 51 additions & 0 deletions dotfiles/config/oh-my-posh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "cyan",
"properties": {
"style": "folder"
},
"style": "plain",
"template": "{{ .Path }} ",
"type": "path"
},
{
"foreground": "#ff94df",
"properties": {
"branch_icon": " <#ff94df><b>\ue0a0 </b></>",
"fetch_stash_count": true
},
"style": "plain",
"template": "<#ffffff>on</> {{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "lightGreen",
"style": "plain",
"template": "\u276f",
"type": "text"
}
],
"type": "prompt"
}
],
"transient_prompt": {
"background": "transparent",
"foreground": "#ffffff",
"template": ""
},
"final_space": true,
"version": 3
}
6 changes: 5 additions & 1 deletion dotfiles/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,15 @@ unsetopt correct_all # do not correct spelling of all arguments
setopt correct

##
## starship
## prompt
##

[ -f "/usr/local/bin/starship" ] || curl -sS https://starship.rs/install.sh | sh
eval "$(starship init zsh)"

# [ -f "$HOME/bin/oh-my-posh" ] || curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
# eval "$(oh-my-posh init zsh --config $HOME/.config/oh-my-posh.json)"

### custom config which should not be synced with git
[ -f "$HOME/.zshrc_local" ] && source "$HOME/.zshrc_local"

Expand Down
2 changes: 1 addition & 1 deletion vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
//
"workbench.editor.closeOnFileDelete": true,
"workbench.editor.revealIfOpen": true,
"workbench.iconTheme": "catppuccin-latte",
"workbench.iconTheme": "catppuccin-frappe",
"workbench.list.openMode": "singleClick",
"workbench.preferredDarkColorTheme": "Catppuccin Frappé",
"workbench.preferredLightColorTheme": "Catppuccin Latte",
Expand Down

0 comments on commit f0dbe37

Please sign in to comment.