Last active
June 27, 2024 15:44
-
-
Save n9iels/f04d7d7170a5a0351f5ceabeef51ac51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json | |
version = 2 | |
final_space = true | |
console_title_template = '{{ .Shell }} in {{ .Folder }}' | |
disable_cursor_positioning = true | |
[[blocks]] | |
type = 'prompt' | |
alignment = 'left' | |
newline = true | |
[[blocks.segments]] | |
type = 'path' | |
style = 'diamond' | |
foreground = 'p:white' | |
background = 'p:orange' | |
leading_diamond = '' | |
trailing_diamond = '' | |
template = ' {{ path .Path .Location }} ' | |
[blocks.segments.properties] | |
style = 'full' | |
[[blocks.segments]] | |
type = 'git' | |
style = 'powerline' | |
powerline_symbol = '' | |
foreground = 'p:black' | |
foreground_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}', '{{ if or (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}', '{{ if gt .Ahead 0 }}p:white{{ end }}'] | |
background = 'p:green' | |
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}', '{{ if or (gt .Ahead 0) (gt .Behind 0) }}p:purple{{ end }}'] | |
template = ' {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} ' | |
[blocks.segments.properties] | |
branch_max_length = 25 | |
fetch_status = true | |
fetch_upstream_icon = true | |
[[blocks.segments]] | |
type = 'root' | |
style = 'powerline' | |
powerline_symbol = '' | |
foreground = 'p:white' | |
background = 'p:yellow' | |
template = ' ' | |
[[blocks.segments]] | |
type = 'status' | |
style = 'diamond' | |
foreground = 'p:white' | |
background = 'p:blue' | |
background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}'] | |
leading_diamond = '<transparent,background></>' | |
trailing_diamond = '' | |
template = ' {{ if gt .Code 0 }}{{ else }}{{ end }} ' | |
[blocks.segments.properties] | |
always_enabled = true | |
[[blocks]] | |
type = 'rprompt' | |
[[blocks.segments]] | |
type = "executiontime" | |
foreground = 'p:red' | |
background = 'transparent' | |
template = " {{ .FormattedMs }} " | |
[blocks.segments.properties] | |
threshold = 2000 | |
style = "austin" | |
always_enabled = false | |
[transient_prompt] | |
foreground = 'p:black' | |
background = 'transparent' | |
template = '<p:yellow,transparent></><,p:yellow> {{ .PWD }} </><p:yellow,transparent></> ' | |
[secondary_prompt] | |
foreground = 'p:black' | |
background = 'transparent' | |
template = '<p:yellow,transparent></><,p:yellow> </><p:yellow,transparent></> ' | |
[palette] | |
black = '#262B44' | |
blue = '#4B95E9' | |
green = '#59C9A5' | |
orange = '#F07623' | |
red = '#D81E5B' | |
white = '#E0DEF4' | |
yellow = '#F3AE35' | |
purple = '#49416D' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/nielsvanderveer/.oh-my-zsh | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse)`` | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git docker aws ng zsh-autosuggestions copyfile sudo) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
export PATH="$HOME/.local/bin:$PATH" | |
export PATH="/opt/homebrew/bin:$PATH" | |
# fnm | |
export PATH="/Users/nielsvanderveer/Library/Application Support/fnm:$PATH" | |
eval "$(fnm env --use-on-cd)" | |
# fnm end | |
eval "$(oh-my-posh init zsh --config ~/.ohmyposh.toml)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontFamily": "JetBrainsMono Nerd Font", | |
"editor.fontSize": 13, | |
"terminal.integrated.fontSize": 13, | |
"terminal.integrated.minimumContrastRatio": 1, | |
"terminal.integrated.shellIntegration.decorationsEnabled": "never", | |
"terminal.integrated.showLinkHover": false, | |
"terminal.integrated.enablePersistentSessions": false, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.formatOnSave": true, | |
"[json]": { | |
"editor.formatOnSave": false | |
}, | |
"[yaml]": { | |
"editor.formatOnSave": false | |
}, | |
"[xml]": { | |
"editor.defaultFormatter": "redhat.vscode-xml" | |
}, | |
"workbench.editor.enablePreview": false, | |
"redhat.telemetry.enabled": false, | |
"workbench.editor.wrapTabs": true, | |
"explorer.fileNesting.enabled": true, | |
"explorer.fileNesting.patterns": { | |
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts", | |
"*.jsx": "${capture}.js", | |
"*.tsx": "${capture}.ts", | |
"tsconfig.json": "tsconfig.*.json", | |
"package.json": "package-lock.json, yarn.lock", | |
"*.ts": "${basename}.spec.ts" | |
}, | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"diffEditor.ignoreTrimWhitespace": false, | |
"workbench.colorTheme": "Default Dark+", | |
"javascript.referencesCodeLens.enabled": false, | |
"typescript.referencesCodeLens.enabled": false, | |
"nxConsole.showNodeVersionOnStartup": false, | |
"workbench.layoutControl.enabled": false, | |
"cSpell.userWords": [ | |
], | |
"cSpell.language": "en,nl" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment