forked from Snoweuph/Dotfiles
Minor tweaks
This commit is contained in:
parent
e8d52d0788
commit
ad3bde2ba3
2 changed files with 34 additions and 60 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
version = 2
|
version = 2
|
||||||
final_space = true
|
final_space = true
|
||||||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||||
|
@ -6,34 +7,30 @@ console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||||
type = 'prompt'
|
type = 'prompt'
|
||||||
alignment = 'left'
|
alignment = 'left'
|
||||||
newline = true
|
newline = true
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'session'
|
type = 'path'
|
||||||
style = 'diamond'
|
style = 'diamond'
|
||||||
leading_diamond = ''
|
leading_diamond = ''
|
||||||
trailing_diamond = ''
|
trailing_diamond = ''
|
||||||
template = ' {{ if .SSHSession }} {{ end }}{{ .UserName }} '
|
template = '{{ path .Path .Location }} '
|
||||||
background = 'p:cyan'
|
|
||||||
foreground = 'p:black'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'path'
|
|
||||||
style = 'powerline'
|
|
||||||
powerline_symbol = ''
|
|
||||||
template = ' {{ path .Path .Location }} '
|
|
||||||
background = 'p:beige'
|
background = 'p:beige'
|
||||||
foreground = 'p:black'
|
foreground = 'p:black'
|
||||||
|
|
||||||
[blocks.segments.properties]
|
[blocks.segments.properties]
|
||||||
style = 'folder'
|
style = 'agnoster_full'
|
||||||
|
[blocks.segments.properties.mapped_locations]
|
||||||
|
"~" = ""
|
||||||
|
"~/Downloads" = ""
|
||||||
|
"~/Workspace" = " "
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'git'
|
type = 'git'
|
||||||
style = 'powerline'
|
style = 'diamond'
|
||||||
powerline_symbol = ''
|
trailing_diamond = ''
|
||||||
foreground_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}', '{{ if gt .Ahead 0 }}p:white{{ end }}']
|
leading_diamond = '<transparent,background></>'
|
||||||
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}', '{{ if gt .Ahead 0 }}#49416D{{ end }}', '{{ if gt .Behind 0 }}#7A306C{{ end }}']
|
background_templates = ['{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}', '{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}', '{{ if gt .Ahead 0 }}#49416D{{ end }}', '{{ if gt .Behind 0 }}#7A306C{{ 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 }} '
|
template = ' {{ if .UpstreamURL }}{{ .UpstreamIcon }}{{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} '
|
||||||
background = 'p:green'
|
background = 'p:green'
|
||||||
foreground = 'p:black'
|
foreground = 'p:black'
|
||||||
|
|
||||||
|
@ -50,27 +47,13 @@ console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||||
background = 'p:yellow'
|
background = 'p:yellow'
|
||||||
foreground = 'p:white'
|
foreground = 'p:white'
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'status'
|
|
||||||
style = 'diamond'
|
|
||||||
background_templates = ['{{ if gt .Code 0 }}p:red{{ end }}']
|
|
||||||
leading_diamond = '<transparent,background></>'
|
|
||||||
trailing_diamond = ''
|
|
||||||
template = ' {{ if gt .Code 0 }}{{ else }}{{ end }} '
|
|
||||||
background = 'p:blue'
|
|
||||||
foreground = 'p:black'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
always_enabled = true
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'rprompt'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'node'
|
type = 'node'
|
||||||
style = 'plain'
|
style = 'diamond'
|
||||||
template = ' '
|
trailing_diamond = ''
|
||||||
background = 'transparent'
|
leading_diamond = '<transparent,background></>'
|
||||||
|
template = 'JS '
|
||||||
|
background = 'p:gray'
|
||||||
foreground = 'p:green'
|
foreground = 'p:green'
|
||||||
|
|
||||||
[blocks.segments.properties]
|
[blocks.segments.properties]
|
||||||
|
@ -80,35 +63,21 @@ console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||||
|
|
||||||
[[blocks.segments]]
|
[[blocks.segments]]
|
||||||
type = 'go'
|
type = 'go'
|
||||||
style = 'plain'
|
style = 'diamond'
|
||||||
template = ' '
|
trailing_diamond = ''
|
||||||
background = 'transparent'
|
leading_diamond = '<transparent,background></>'
|
||||||
foreground = 'p:blue'
|
template = 'Go '
|
||||||
|
background = 'p:gray'
|
||||||
[blocks.segments.properties]
|
foreground = 'p:cyan'
|
||||||
fetch_version = false
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'python'
|
|
||||||
style = 'plain'
|
|
||||||
template = ' '
|
|
||||||
background = 'transparent'
|
|
||||||
foreground = 'p:yellow'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
display_mode = 'files'
|
|
||||||
fetch_version = false
|
|
||||||
fetch_virtual_env = false
|
|
||||||
|
|
||||||
[transient_prompt]
|
[transient_prompt]
|
||||||
foreground_templates = [
|
foreground = "p:green"
|
||||||
"{{if gt .Code 0}}p:red{{end}}",
|
foreground_templates = ["{{if gt .Code 0}}p:red{{end}}",]
|
||||||
"{{if eq .Code 0}}p:green{{end}}"
|
|
||||||
]
|
|
||||||
background = 'transparent'
|
background = 'transparent'
|
||||||
template = ' '
|
template = '{{ if gt .Code 0 }}{{ else }}{{ end }} '
|
||||||
[palette]
|
[palette]
|
||||||
black = '#11111b'
|
black = '#11111b'
|
||||||
|
gray = '#6c7086'
|
||||||
blue = '#89b4fa'
|
blue = '#89b4fa'
|
||||||
cyan = '#74c7ec'
|
cyan = '#74c7ec'
|
||||||
green = '#a6e3a1'
|
green = '#a6e3a1'
|
||||||
|
@ -117,3 +86,4 @@ console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||||||
white = '#cdd6f4'
|
white = '#cdd6f4'
|
||||||
yellow = '#f9e2af'
|
yellow = '#f9e2af'
|
||||||
beige = '#f2cdcd'
|
beige = '#f2cdcd'
|
||||||
|
|
||||||
|
|
6
.zshrc
6
.zshrc
|
@ -27,6 +27,10 @@ SAVEHIST=1000
|
||||||
# Disable Bell
|
# Disable Bell
|
||||||
unsetopt beep
|
unsetopt beep
|
||||||
|
|
||||||
|
# Keybinding
|
||||||
|
bindkey '\e[1;5C]' forward-word
|
||||||
|
bindkey '\e[1;5D]' backward-word
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
#########################################################
|
#########################################################
|
||||||
case "$HOSTNAME" in
|
case "$HOSTNAME" in
|
||||||
|
@ -60,7 +64,7 @@ export JUST_UNSTABLE=1
|
||||||
# Aliases
|
# Aliases
|
||||||
#########################################################
|
#########################################################
|
||||||
alias edit-nvim-conf="nvim ~/.config/nvim"
|
alias edit-nvim-conf="nvim ~/.config/nvim"
|
||||||
alias edit-bash-conf="nvim ~/.bashrc"
|
alias edit-zsh-conf="nvim ~/.zshrc"
|
||||||
alias todo="nvim ~/Documents/Notes/Todo.md"
|
alias todo="nvim ~/Documents/Notes/Todo.md"
|
||||||
|
|
||||||
alias nano="nvim"
|
alias nano="nvim"
|
||||||
|
|
Loading…
Reference in a new issue