This commit is contained in:
2022-11-02 16:51:35 -05:00
parent 49ac817785
commit bf8c229abc
4 changed files with 136 additions and 28 deletions

View File

@@ -0,0 +1,22 @@
{
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.autofetch": true,
"redhat.telemetry.enabled": false,
"workbench.startupEditor": "none",
"explorer.confirmDragAndDrop": false,
"window.restoreWindows": "none",
"github.gitAuthentication": false,
"terminal.integrated.defaultProfile.linux": "zsh",
"editor.fontFamily": "FiraCode Nerd Font Mono Medium",
"terminal.integrated.fontFamily": "FiraMono Nerd Font Mono",
"terminal.integrated.scrollback": -1,
"vs-kubernetes": {
"vscode-kubernetes.minikube-path.linux": "/home/user/.local/state/vs-kubernetes/tools/minikube/linux-amd64/minikube"
},
"workbench.editor.untitled.hint": "hidden",
"terminal.integrated.defaultProfile.osx": "",
"editor.fontSize": 15
}

View File

@@ -1,50 +1,135 @@
{ {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [ "blocks": [
{
"alignment": "right",
"segments": [
{
"foreground": "#00C5C7",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"template": " {{ .CurrentDate | date .Format }} ",
"type": "time"
}
],
"type": "prompt",
"vertical_offset": -1
},
{ {
"alignment": "left", "alignment": "left",
"newline": true,
"segments": [ "segments": [
{ {
"foreground": "#77E4F7", "background": "#3A3A3A",
"foreground": "#ffffff",
"style": "powerline",
"template": "{{ if .WSL }}WSL at{{ end }} {{.Icon}} ",
"type": "os"
},
{
"background": "#458588",
"foreground": "#282828",
"powerline_symbol": "\ue0b0",
"properties": { "properties": {
"style": "full" "style": "full"
}, },
"style": "plain", "style": "powerline",
"template": " {{ .Path }} ", "template": " {{ .Path }} ",
"type": "path" "type": "path"
}, },
{ {
"foreground": "#FFE700", "background": "#98971A",
"style": "plain", "background_templates": [
"template": "{{ .HEAD }} ", "{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"foreground": "#282828",
"leading_diamond": "\ue0b6",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true,
"branch_icon": "\uE0A0 ",
"branch_identical_icon": "\u25CF"
},
"style": "powerline",
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ",
"trailing_diamond": "\ue0b4",
"type": "git" "type": "git"
}, },
{ {
"foreground": "#43D426", "background": "#8ED1F7",
"style": "plain", "foreground": "#111111",
"template": "\u276f ", "powerline_symbol": "\ue0b0",
"type": "text" "properties": {
"fetch_version": true
},
"style": "powerline",
"template": " \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "go"
},
{
"background": "#4063D8",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": true
},
"style": "powerline",
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "julia"
},
{
"background": "#FFDE57",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "files",
"fetch_virtual_env": false
},
"style": "powerline",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "python"
},
{
"background": "#AE1401",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "files",
"fetch_version": true
},
"style": "powerline",
"template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "ruby"
},
{
"background": "#FEAC19",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "files",
"fetch_version": false
},
"style": "powerline",
"template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"type": "azfunc"
},
{
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
],
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"display_default": false
},
"style": "powerline",
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
"type": "aws"
},
{
"background": "#ffff66",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \uf0ad ",
"type": "root"
} }
], ],
"type": "prompt" "type": "prompt"
} }
], ],
"console_title_template": "{{ .Folder }}",
"final_space": true,
"version": 2 "version": 2
} }

View File

@@ -28,7 +28,7 @@
- name: "Create a default ZSH configuration" - name: "Create a default ZSH configuration"
become_user: user become_user: user
template: template:
src: templates/zshrc src: files/zshrc
dest: "~/.zshrc" dest: "~/.zshrc"
owner: "user" owner: "user"
force: yes force: yes

View File

@@ -44,4 +44,5 @@ configs:
- {src: 'Microsoft.PowerShell_profile.ps1', dest: 'powershell', destname: 'Microsoft.PowerShell_profile.ps1'} - {src: 'Microsoft.PowerShell_profile.ps1', dest: 'powershell', destname: 'Microsoft.PowerShell_profile.ps1'}
- {src: 'pwsh-config.json', dest: 'powershell', destname: 'config.json'} - {src: 'pwsh-config.json', dest: 'powershell', destname: 'config.json'}
- {src: 'popshell-config.json', dest: 'pop-shell', destname: 'config.json'} - {src: 'popshell-config.json', dest: 'pop-shell', destname: 'config.json'}
- {src: 'code-settings.json', dest: 'Code/User', destname: 'settings.json'}