Skip to content

Commit

Permalink
zsh: Add omp config
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Jan 19, 2025
1 parent f918742 commit a216fe0
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 0 deletions.
141 changes: 141 additions & 0 deletions .config/omp/omz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json

Check failure on line 1 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

1:81 [line-length] line too long (115 > 80 characters)

palette:

Check warning on line 3 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

3:1 [document-start] missing document start "---"
black: "#262B44"
blue: "#4B95E9"
green: "#59C9A5"
orange: "#F07623"
red: "#D81E5B"
white: "#E0DEF4"
yellow: "#F3AE35"
secondary_prompt:
template: "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> "

Check failure on line 12 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

12:81 [line-length] line too long (94 > 80 characters)
foreground: p:black
background: transparent
transient_prompt:
template: "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> "

Check failure on line 16 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

16:81 [line-length] line too long (106 > 80 characters)
foreground: p:black
background: transparent
console_title_template: "{{ .Shell }} in {{ .Folder }}"
upgrade:
source: cdn
interval: 168h
auto: false
notice: false
blocks:
- type: prompt

Check failure on line 26 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

26:1 [indentation] wrong indentation: expected 2 but found 0
alignment: left
segments:
- leading_diamond:

Check failure on line 29 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

29:3 [indentation] wrong indentation: expected 4 but found 2
trailing_diamond:
template: " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} "
foreground: p:black
background: p:yellow
type: session
style: diamond
- properties:
style: folder
template: " \uea83 {{ path .Path .Location }} "
foreground: p:white
powerline_symbol:
background: p:orange
type: path
style: powerline
- properties:
branch_max_length: 25
fetch_status: true
fetch_upstream_icon: true
template: " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} "

Check failure on line 48 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

48:81 [line-length] line too long (272 > 80 characters)
foreground: p:black
powerline_symbol:
background: p:green
type: git
style: powerline
foreground_templates:
- "{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}"

Check failure on line 55 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

55:5 [indentation] wrong indentation: expected 6 but found 4
- "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}"
- "{{ if gt .Ahead 0 }}p:white{{ end }}"
background_templates:
- "{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}"

Check failure on line 59 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

59:5 [indentation] wrong indentation: expected 6 but found 4
- "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}"
- "{{ if gt .Ahead 0 }}#49416D{{ end }}"
- "{{ if gt .Behind 0 }}#7A306C{{ end }}"
- template: " \uf0e7 "
foreground: p:white
powerline_symbol:
background: p:yellow
type: root
style: powerline
- properties:
always_enabled: true
leading_diamond: <transparent,background></>
trailing_diamond:
template: " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} "
foreground: p:white
background: p:blue
type: status
style: diamond
background_templates:
- "{{ if gt .Code 0 }}p:red{{ end }}"

Check failure on line 79 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

79:5 [indentation] wrong indentation: expected 6 but found 4
- type: rprompt
segments:
- properties:

Check failure on line 82 in .config/omp/omz.yaml

View workflow job for this annotation

GitHub Actions / yamllint

82:3 [indentation] wrong indentation: expected 4 but found 2
display_mode: files
fetch_package_manager: false
home_enabled: false
template: "\ue718 "
foreground: p:green
background: transparent
type: node
style: plain
- properties:
fetch_version: false
template: "\ue626 "
foreground: p:blue
background: transparent
type: go
style: plain
- properties:
display_mode: files
fetch_version: false
fetch_virtual_env: false
template: "\ue235 "
foreground: p:yellow
background: transparent
type: python
style: plain
- template: "in <p:blue><b>{{ .Name }}</b></> "
foreground: p:white
background: transparent
type: shell
style: plain
- template: at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>
foreground: p:white
background: transparent
type: time
style: plain
tooltips:
- properties:
display_default: true
leading_diamond:
trailing_diamond:
template: " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} "
foreground: p:white
background: p:orange
type: aws
style: diamond
tips:
- aws
- properties:
display_default: true
leading_diamond:
trailing_diamond:
template: " \uebd8 {{ .Name }} "
foreground: p:white
background: p:blue
type: az
style: diamond
tips:
- az
version: 3
final_space: true
1 change: 1 addition & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ fi
cd ~/.config
ln -fs "${DOTFILES}/.config/nvim/" .
ln -fs "${DOTFILES}/.config/tmux" .
ln -fs "${DOTFILES}/.config/omp" .

if [[ ! -d "${SCRIPTS}" ]]; then
git clone https://github.com/lindhe/scripts.git "${SCRIPTS}"
Expand Down

0 comments on commit a216fe0

Please sign in to comment.