首页
备份一些常用的文件代码等
Helix配置文件
theme = "catppuccin_mocha"
[editor]
line-number = "relative"
completion-timeout = 5
completion-trigger-len = 1
end-of-line-diagnostics = "hint"
color-modes = true
default-yank-register = "+"
[editor.lsp]
display-progress-messages = true
[editor.statusline]
left = [
"mode",
"spacer",
"version-control",
"spacer",
"diagnostics",
]
center = [
"file-name",
"file-modification-indicator",
]
right = [
"position",
"position-percentage",
"file-type",
]
[editor.auto-save.after-delay]
enable = true
timeout = 500
[editor.indent-guides]
render = true
Ghostty配置文件
theme = Catppuccin Mocha
font-family = Maple Mono NF CN
font-size = 15
font-thicken = true
font-thicken-strength = 127
working-directory = /Users/jane/space
window-inherit-working-directory = false
window-new-tab-position = end
adjust-cell-height = 3
mouse-hide-while-typing = true
cursor-style-blink = false
shell-integration-features = no-cursor
window-padding-x = 8
maximize = true
macos-titlebar-proxy-icon = hidden
macos-option-as-alt = true
macos-titlebar-style = tabs
starship配置文件
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = false
format = """
$os\
$directory\
$username\
$hostname\
$git_branch\
$git_status\
$golang\
$lua\
$python\
$rust\
$cmd_duration\
$character
"""
[golang]
symbol = " "
format = "[$symbol($version )]($style)"
[lua]
symbol = " "
format = "[$symbol($version )]($style)"
[python]
symbol = " "
format = "[$symbol($version )]($style)"
[rust]
symbol = " "
format = "[$symbol($version )]($style)"
[cmd_duration]
format = "[ $duration ]($style)"
style = "green bold"
[character]
success_symbol = '[#](white bold)'
error_symbol = '[#](red bold)'
vimcmd_symbol = "[#](green bold)"
vimcmd_replace_one_symbol = "[#](green bold)"
vimcmd_replace_symbol = "[#](green bold)"
vimcmd_visual_symbol = "[#](green bold)"
[directory]
format = "[$read_only$path ]($style)"
read_only = " "
style = "blue bold"
[git_branch]
format = "[$symbol$branch]($style)"
symbol = " "
style = "yellow bold"
[git_status]
format = '[$all_status$ahead_behind ]($style)'
style = "yellow bold"
[os]
style = "gray bold"
disabled = false
[os.symbols]
Macos = " "
Windows = " "
Linux = " "
Zed配置文件
[
{
"bindings": {
"shift-tab": "menu::SelectPrevious",
"tab": "menu::SelectNext"
}
},
{
"context": "Workspace",
"bindings": {
"cmd-j": "workspace::ToggleRightDock",
"cmd-b": "workspace::ToggleBottomDock"
}
},
{
"context": "Terminal",
"bindings": {
"cmd-j": "workspace::ToggleRightDock",
"cmd-k": "agent::ToggleFocus"
}
},
{
"context": "AgentPanel",
"bindings": {
"cmd-j": "workspace::ToggleRightDock",
"cmd-k": "terminal_panel::ToggleFocus"
}
},
{
"context": "ProjectPanel",
"bindings": {
"space w h": "workspace::ActivatePaneLeft",
"space w l": "workspace::ActivatePaneRight",
"space w k": "workspace::ActivatePaneUp",
"space w j": "workspace::ActivatePaneDown"
}
},
{
"context": "Editor && vim_mode == helix_normal && !menu",
"bindings": {
"space z": "workspace::ToggleZoom",
"space m": "markdown::OpenPreviewToTheSide",
"shift-j": "editor::GoToDiagnostic",
"shift-k": "editor::GoToPreviousDiagnostic",
"shift-h": "pane::GoBack",
"shift-l": "pane::GoForward",
"enter": "editor::SelectLargerSyntaxNode",
"backspace": "editor::SelectSmallerSyntaxNode",
"-": "editor::MoveLineUp",
"=": "editor::MoveLineDown"
}
},
{
"context": "Editor && (showing_code_actions || showing_completions)",
"bindings": {
"shift-tab": "editor::ContextMenuPrevious",
"tab": "editor::ContextMenuNext"
}
}
]
{
"auto_install_extensions": {
"catppuccin": true
},
"theme": "Catppuccin Mocha",
"show_whitespaces": "none",
"gutter": {
"folds": false
},
"project_panel": {
"scrollbar": {
"show": "never"
}
},
"diagnostics": {
"inline": {
"enabled": true
}
},
"collaboration_panel": {
"button": false
},
"notification_panel": {
"button": false
},
"agent": {
"default_model": {
"provider": "deepseek",
"model": "deepseek-reasoner"
}
},
"features": {
"edit_prediction_provider": "none"
},
"buffer_font_family": "Maple Mono NF CN",
"buffer_font_weight": 500,
"ui_font_family": "Maple Mono NF CN",
"ui_font_size": 15,
"ui_font_weight": 500,
"autosave": {
"after_delay": {
"milliseconds": 500
}
},
"helix_mode": true,
"relative_line_numbers": true,
"cursor_blink": false,
"vertical_scroll_margin": 5,
"current_line_highlight": "none",
"toolbar": {
"quick_actions": false,
"breadcrumbs": false
},
"tab_bar": {
"show_nav_history_buttons": false
},
"tabs": {
"git_status": true,
"file_icons": true,
"show_diagnostics": "all"
},
"terminal": {
"toolbar": {
"breadcrumbs": false
},
"font_weight": 500,
"dock": "right",
"blinking": "off",
"scrollbar": {
"show": "never"
}
}
}
常用软件
浏览器: Safari
终端: Ghostty
数据库管理: DataGrip
Docker: OrbStack
编辑器: Zed
git无法 clone 和 push 的问题
~/.ssh/config
Host github.com
Hostname ssh.github.com
Port 443
User git
下载ShellCrash
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
常用github actions
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell启用vim模式
bindkey -v
export KEYTIMEOUT=1
bindkey "^H" backward-delete-char
bindkey "^?" backward-delete-char