mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-22 12:22:17 +00:00
initial commit
This commit is contained in:
commit
72b2b7859e
4 changed files with 157 additions and 0 deletions
22
.zshrc
Normal file
22
.zshrc
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
setopt appendhistory autocd
|
||||
unsetopt beep extendedglob notify
|
||||
bindkey -v
|
||||
# End of lines configured by zsh-newuser-install
|
||||
# The following lines were added by compinstall
|
||||
zstyle :compinstall filename '/home/john/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
|
||||
# Aliases
|
||||
alias ssh="TERM=xterm ssh"
|
||||
|
||||
# Shell initializations
|
||||
eval "$(oh-my-posh init zsh --config 'https://raw.githubusercontent.com/jbowdre/config/main/vpotato.minimal.omp.json')"
|
||||
enable_poshtransientprompt
|
||||
eval "$(mcfly init zsh)"
|
2
Microsoft.PowerShell_profile.ps1
Normal file
2
Microsoft.PowerShell_profile.ps1
Normal file
|
@ -0,0 +1,2 @@
|
|||
oh-my-posh init pwsh --config https://raw.githubusercontent.com/jbowdre/config/main/vpotato.minimal.omp.json | Invoke-Expression
|
||||
Enable-PoshTransientPrompt
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# dotfiles
|
132
vpotato.minimal.omp.json
Normal file
132
vpotato.minimal.omp.json
Normal file
|
@ -0,0 +1,132 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "right",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#4fb6c3",
|
||||
"style": "plain",
|
||||
"template": "{{ .Context}}{{ if .Namespace }} :: {{ .Namespace }}{{ end }} <#757575,>|</> ",
|
||||
"type": "kubectl"
|
||||
},
|
||||
{
|
||||
"foreground": "#007acc",
|
||||
"style": "plain",
|
||||
"template": "{{ .Name }}{{ if eq .Name \"pwsh\" }} ({{ substr 0 1 .Version }}){{ end }}",
|
||||
"type": "shell"
|
||||
},
|
||||
{
|
||||
"foreground": "#ff8080",
|
||||
"style": "plain",
|
||||
"template": " <#757575,>as</> root",
|
||||
"type": "root"
|
||||
},
|
||||
{
|
||||
"foreground": "#689f38",
|
||||
"properties": {
|
||||
"time_format": "15:04:05"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": " <#757575,>|</> {{ .CurrentDate | date .Format }}",
|
||||
"type": "time"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#757575",
|
||||
"style": "plain",
|
||||
"template": "\u250c {{ if .SSHSession }}\u274f {{ end }}{{ .UserName }}@{{ .HostName }} ",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"background": "#91ddff",
|
||||
"foreground": "#100e23",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"style": "unique"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"background": "#95ffa4",
|
||||
"background_templates": [
|
||||
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}",
|
||||
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
|
||||
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
|
||||
"{{ if gt .Behind 0 }}#c5b6ad{{ end }}"
|
||||
],
|
||||
"foreground": "#100e23",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"branch_ahead_icon": "\u2191",
|
||||
"branch_behind_icon": "\u2193",
|
||||
"branch_gone": "\u2262",
|
||||
"branch_icon": "\ue0a0 ",
|
||||
"branch_identical_icon": "\u2261",
|
||||
"cherry_pick_icon": "\u2713 ",
|
||||
"commit_icon": "\u25b7 ",
|
||||
"fetch_stash_count": true,
|
||||
"fetch_status": true,
|
||||
"merge_icon": "\u25f4 ",
|
||||
"no_commits_icon": "[no commits]",
|
||||
"rebase_icon": "\u2c62 ",
|
||||
"tag_icon": "\u25b6 "
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} \u2502{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} ",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"background": "#c9bc45",
|
||||
"foreground": "#100e23",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"style": "powerline",
|
||||
"template": " {{ .WorkspaceName }} ",
|
||||
"type": "terraform"
|
||||
},
|
||||
{
|
||||
"background": "#ff8080",
|
||||
"foreground": "#ffffff",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"style": "powerline",
|
||||
"template": " error ",
|
||||
"type": "exit"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#757575",
|
||||
"style": "plain",
|
||||
"template": "\u2514 ",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"foreground": "#ffffff",
|
||||
"style": "plain",
|
||||
"template": "$",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"transient_prompt": {
|
||||
"template": "; "
|
||||
},
|
||||
"final_space": true,
|
||||
"osc99": false,
|
||||
"version": 2
|
||||
}
|
Loading…
Reference in a new issue