feat: 现代化终端体验升级
- 新增包:starship, atuin, direnv, xh, yq, sd, zellij - 重写 .zshrc:Starship 提示符、Atuin 历史搜索、fzf 键绑定、 增强别名(eza --icons, ll, la, lt)、shell 选项、WSL 剪贴板 - 新增 starship.toml 配置 - 优化 git config:SSL 限定到内网地址、pull.rebase、 push.autoSetupRemote、rerere、delta line-numbers
This commit is contained in:
+10
-1
@@ -1,4 +1,4 @@
|
||||
[http]
|
||||
[http "https://202.127.0.42:32443"]
|
||||
sslVerify = false
|
||||
[core]
|
||||
pager = delta
|
||||
@@ -7,7 +7,16 @@
|
||||
[delta]
|
||||
navigate = true
|
||||
side-by-side = true
|
||||
line-numbers = true
|
||||
[credential]
|
||||
helper = store
|
||||
[merge]
|
||||
conflictstyle = zdiff3
|
||||
[pull]
|
||||
rebase = true
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[rerere]
|
||||
enabled = true
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
format = """
|
||||
$username\
|
||||
$hostname\
|
||||
$directory\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
$nodejs\
|
||||
$python\
|
||||
$go\
|
||||
$rust\
|
||||
$cmd_duration\
|
||||
$line_break\
|
||||
$character"""
|
||||
|
||||
[character]
|
||||
success_symbol = "[❯](bold green)"
|
||||
error_symbol = "[❯](bold red)"
|
||||
|
||||
[directory]
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
|
||||
[git_branch]
|
||||
symbol = " "
|
||||
|
||||
[git_status]
|
||||
format = '([\[$all_status$ahead_behind\]]($style) )'
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 2000
|
||||
format = "[$duration]($style) "
|
||||
|
||||
[nodejs]
|
||||
format = "[$symbol($version)]($style) "
|
||||
detect_extensions = []
|
||||
|
||||
[python]
|
||||
format = "[$symbol($version)]($style) "
|
||||
|
||||
[go]
|
||||
format = "[$symbol($version)]($style) "
|
||||
Reference in New Issue
Block a user