Skip to content

Commit

Permalink
add theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jpawlowski committed Aug 1, 2024
1 parent 0e87a5d commit ecfefa7
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
47 changes: 47 additions & 0 deletions dot_config/oh-my-posh/themes/powerlevel10k_lean.omp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"segments": [
{
"foreground": "#00C5C7",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"template": " {{ .CurrentDate | date .Format }} ",
"type": "time"
}
],
"type": "rprompt"
},
{
"alignment": "left",
"segments": [
{
"foreground": "#77E4F7",
"properties": {
"style": "full"
},
"style": "plain",
"template": "{{ .Path }} ",
"type": "path"
},
{
"foreground": "#FFE700",
"style": "plain",
"template": "{{ .HEAD }} ",
"type": "git"
},
{
"foreground": "#43D426",
"style": "plain",
"template": "\u276f ",
"type": "text"
}
],
"type": "prompt"
}
],
"version": 2
}
2 changes: 1 addition & 1 deletion dot_config/powershell/Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# ~/.config/powershell/Microsoft.PowerShell_profile.ps1: executed by the PowerShell console host on startup.

oh-my-posh init pwsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/M365Princess.omp.json | Invoke-Expression
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/powerlevel10k_lean.omp.json" | Invoke-Expression
2 changes: 2 additions & 0 deletions dot_config/powershell/profile.ps1
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# ~/.config/powershell/profile.ps1: executed by all PowerShell hosts on startup.

$env:POSH_THEMES_PATH="$HOME/.config/oh-my-posh/themes"

0 comments on commit ecfefa7

Please sign in to comment.