Deleting old unused stuff, move some configs to _saved.
This commit is contained in:
parent
623c114870
commit
9e8fd82547
37 changed files with 1 additions and 408 deletions
23
config/lazygit/config.yml
Normal file
23
config/lazygit/config.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
gui:
|
||||
language: 'auto' # one of 'auto' | 'en' | 'zh-CN' | 'zh-TW' | 'pl' | 'nl' | 'ja' | 'ko' | 'ru'
|
||||
timeFormat: '2006-01-02' # https://pkg.go.dev/time#Time.Format
|
||||
shortTimeFormat: '3:04PM'
|
||||
theme:
|
||||
selectedLineBgColor:
|
||||
- reverse
|
||||
commitLength:
|
||||
show: true
|
||||
mouseEvents: false
|
||||
showFileTree: false # for rendering changes files in a tree format
|
||||
showListFooter: true # for seeing the '5 of 20' message in list panels
|
||||
showRandomTip: false
|
||||
showCommandLog: false
|
||||
nerdFontsVersion: "3" # nerd fonts version to use ("2" or "3"); empty means don't show nerd font icons
|
||||
git:
|
||||
commit:
|
||||
signOff: true
|
||||
mainBranches: [master]
|
||||
autoFetch: false
|
||||
autoRefresh: false
|
||||
disableStartupPopups: true
|
||||
notARepository: 'skip' # one of: 'prompt' | 'create' | 'skip' | 'quit'
|
|
@ -1,86 +0,0 @@
|
|||
'$schema' = 'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json'
|
||||
final_space = true
|
||||
version = 2
|
||||
|
||||
disable_notice = true
|
||||
auto_upgrade = false
|
||||
|
||||
[[blocks]]
|
||||
type = 'prompt'
|
||||
alignment = 'left'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'python'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = '15'
|
||||
template = ' {{ .Venv }} '
|
||||
|
||||
[blocks.segments.properties]
|
||||
home_enabled = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'session'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground_templates = [
|
||||
"{{ if .Root }}196{{ else }}246{{ end }}"
|
||||
]
|
||||
template = '{{ if or (.SSHSession) (.Root) }}{{ .UserName }}@{{ .HostName }} {{ end }}'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'path'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = '37'
|
||||
template = '{{ if not .Writable }} {{ end }}{{ $segment := .Segments.Git }}{{ if $segment.Dir }}{{ $segment.RepoName}}{{if ne $segment.RepoName .Path}}{{ trimPrefix $segment.Dir .PWD }}{{ end }}{{ else }}{{ .Path }}{{ end }} '
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'full'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'git'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = '246'
|
||||
template = '{{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}{{ if gt .StashCount 0 }}≡ {{ end }}'
|
||||
|
||||
[blocks.segments.properties]
|
||||
branch_icon = ' '
|
||||
commit_icon = '@'
|
||||
fetch_status = true
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'text'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground_templates = [
|
||||
'{{ if eq .Code 0 }}76{{ else }}196{{ end }}'
|
||||
]
|
||||
template = '❯'
|
||||
|
||||
[transient_prompt]
|
||||
background = 'transparent'
|
||||
foreground_templates = [
|
||||
'{{ if eq .Code 0 }}76{{ else }}196{{ end }}'
|
||||
]
|
||||
template = '❯ '
|
||||
|
||||
[secondary_prompt]
|
||||
background = 'transparent'
|
||||
foreground = '220'
|
||||
template = '❯❯ '
|
||||
|
||||
[[blocks]]
|
||||
type = 'rprompt'
|
||||
overflow = 'hidden'
|
||||
|
||||
[[blocks.segments]]
|
||||
type = 'executiontime'
|
||||
style = 'plain'
|
||||
background = 'transparent'
|
||||
foreground = '220'
|
||||
|
||||
[blocks.segments.properties]
|
||||
style = 'round'
|
||||
threshold = 3000
|
|
@ -13,7 +13,7 @@ gd() {
|
|||
git pull
|
||||
}
|
||||
alias gl="git log --graph --abbrev-commit --date=short --pretty=format:'%Cred%h%Creset %Cgreen%cr%Creset: %s : %C(bold blue)%an%Creset %C(yellow)%d%Creset'"
|
||||
|
||||
alias lg=lazygit
|
||||
alias less='less -R'
|
||||
|
||||
if [[ $(command -v bat) ]]; then
|
||||
|
@ -71,5 +71,4 @@ function upgrade() {
|
|||
brew update && brew upgrade && brew cleanup
|
||||
rm -rf ~/Library/Caches/Homebrew/*
|
||||
fi
|
||||
oh-my-posh upgrade
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue