1113 字
6 分钟
Ghostty 配置
Ghostty 配置
安装 Ghostty
Shader
shader 收集 https://catskull.net/fun-with-ghostty-shaders.html
光标动画 shader https://github.com/KroneCorylus/ghostty-shader-playground/blob/main/public/shaders/cursor_smear.glsl
Ghostty 终端配置
# Config generated by Ghostty Config
window-height = 24window-width = 96# custom-shader = ~/.config/ghostty/shaders/bettercrt.glslcustom-shader = ~/.config/ghostty/shaders/cursor_smear.glsl# custom-shader = ~/.config/ghostty/shaders/cursor_blaze.glsl
font-size = 17# Nerd Font(tmux 状态栏图标需要,系统已安装 SFMono Nerd Font)font-family = "SFMono Nerd Font"macos-titlebar-style = tabsmacos-titlebar-proxy-icon = hiddenwindow-show-tab-bar = neverbackground-opacity = 0.8background-blur = truebackground-blur-radius = 11
theme = Catppuccin Mochabackground = #1e1e2e33 collapsed lines
foreground = #cdd6f4selection-background = #585b70selection-foreground = #cdd6f4cursor-color = #f5e0dccursor-text = #1e1e2epalette = 0=#45475apalette = 1=#f38ba8palette = 2=#a6e3a1palette = 3=#f9e2afpalette = 4=#89b4fapalette = 5=#f5c2e7palette = 6=#94e2d5palette = 7=#a6adc8palette = 8=#585b70palette = 9=#f37799palette = 10=#89d88bpalette = 11=#ebd391palette = 12=#74a8fcpalette = 13=#f2aedepalette = 14=#6bd7capalette = 15=#bac2de
window-padding-y = 10unfocused-split-opacity = 0.89split-divider-color = #ffffff
macos-option-as-alt = truemacos-window-shadow = false# 左右内边距(x轴)window-padding-x = 12
# 上下内边距(y轴)window-padding-y = 12Oh-My-Zsh
starship 配置
效果
< ☁️ > ~❯安装 starship
# 安装 starshipcurl -sS https://starship.rs/install.sh | sh
# 将下面的命令添加到 ~/.zshrc:eval "$(starship init zsh)"配置
"$schema" = 'https://starship.rs/config-schema.json'
# Move the directory to the second lineformat = '''< ☁️ > $all'''
[aws]symbol = " "
[buf]symbol = " "
[bun]symbol = " "
[c]symbol = " "
[cpp]symbol = " "
188 collapsed lines
[cmake]symbol = " "
[conda]symbol = " "
[crystal]symbol = " "
[dart]symbol = " "
[deno]symbol = " "
[directory]read_only = " "
[docker_context]symbol = " "
[elixir]symbol = " "
[elm]symbol = " "
[fennel]symbol = " "
[fortran]symbol = " "
[fossil_branch]symbol = " "
[gcloud]symbol = " "
[git_branch]symbol = " "
[git_commit]tag_symbol = ' '
[golang]symbol = " "
[gradle]symbol = " "
[guix_shell]symbol = " "
[haskell]symbol = " "
[haxe]symbol = " "
[hg_branch]symbol = " "
[hostname]ssh_symbol = " "
[java]symbol = " "
[julia]symbol = " "
[kotlin]symbol = " "
[lua]symbol = " "
[memory_usage]symbol = " "
[meson]symbol = " "
[nim]symbol = " "
[nix_shell]symbol = " "
[nodejs]symbol = " "
[ocaml]symbol = " "
[os.symbols]Alpaquita = " "Alpine = " "AlmaLinux = " "Amazon = " "Android = " "AOSC = " "Arch = " "Artix = " "CachyOS = " "CentOS = " "Debian = " "DragonFly = " "Elementary = " "Emscripten = " "EndeavourOS = " "Fedora = " "FreeBSD = " "Garuda = " "Gentoo = " "HardenedBSD = " "Illumos = " "Ios = " "Kali = " "Linux = " "Mabox = " "Macos = " "Manjaro = " "Mariner = " "MidnightBSD = " "Mint = " "NetBSD = " "NixOS = " "Nobara = " "OpenBSD = " "openSUSE = " "OracleLinux = " "Pop = " "Raspbian = " "Redhat = " "RedHatEnterprise = " "RockyLinux = " "Redox = " "Solus = " "SUSE = " "Ubuntu = " "Unknown = " "Void = " "Windows = " "Zorin = " "
[package]symbol = " "
[perl]symbol = " "
[php]symbol = " "
[pijul_channel]symbol = " "
[pixi]symbol = " "
[python]symbol = " "
[rlang]symbol = " "
[ruby]symbol = " "
[rust]symbol = " "
[scala]symbol = " "
[status]symbol = " "
[swift]symbol = " "
[xmake]symbol = " "
[zig]symbol = " "Tmux 配置
插件:https://github.com/catppuccin/tmux
# 一键安装mkdir -p ~/.config/tmux/plugins/catppuccingit clone -b v2.3.0 https://github.com/catppuccin/tmux.git ~/.config/tmux/plugins/catppuccin/tmux# ============================================================# 基础配置# ============================================================
set -g mouse on
# 状态栏顶部set -g status-position top
# 状态栏本身继承 Kitty 背景set -g status-style "fg=default,bg=default"set -g status-left-style "fg=default,bg=default"set -g status-right-style "fg=default,bg=default"
# 给左右模块足够长度,防止内容被截断set -g status-left-length 100set -g status-right-length 100
# 刷新频率set -g status-interval 5121 collapsed lines
# ============================================================# Catppuccin# ============================================================
set -g @catppuccin_flavor "mocha"set -g @catppuccin_status_background "none"
run-shell ~/.tmux/plugins/catppuccin/catppuccin.tmux
# ============================================================# 最终配色## 胶囊深色部分不要纯黑:## dark = #313244# text = #cdd6f4# green = #a6e3a1# peach = #fab387# pink = #f5c2e7# inactive index = #9399b2# ============================================================
# ============================================================# 左胶囊## (绿短 | 深灰长)## [ | session ]## 左右各保留 1 格 padding# ============================================================
set -g status-left "\#[fg=#a6e3a1,bg=default]\#[fg=#11111b,bg=#a6e3a1] \#[fg=#cdd6f4,bg=#313244] #S\#[fg=#313244,bg=default]\ "
# ============================================================# Window / Tab## 每个 Tab 之间只留一个空格# ============================================================
set -g window-status-separator " "
# 清除 Catppuccin 自己残留的 window 样式set -g window-status-style "fg=default,bg=default"set -g window-status-current-style "fg=default,bg=default"
# ============================================================# 当前 Tab## (深灰长 | 橙短)## [ zsh | 0 ]## #W 左右各 1 格# #I 左右各 1 格# ============================================================
set -g window-status-current-format "\#[fg=#313244,bg=default]\#[fg=#cdd6f4,bg=#313244]#W \#[fg=#11111b,bg=#fab387] #I\#[fg=#fab387,bg=default]"
# ============================================================# 非当前 Tab## (深灰长 | 灰蓝短)## 当前窗口用橙色,非当前窗口弱化# ============================================================
set -g window-status-format "\#[fg=#313244,bg=default]\#[fg=#cdd6f4,bg=#313244]#W \#[fg=#11111b,bg=#9399b2] #I\#[fg=#9399b2,bg=default]"
# ============================================================# 右胶囊## (粉短 | 深灰长)## [ folder | directory ]## 只显示当前目录 basename## /Users/cloudsir/project# -># project# ============================================================
set -g status-right "\#[fg=#f5c2e7,bg=default]\#[fg=#11111b,bg=#f5c2e7] \#[fg=#cdd6f4,bg=#313244] #{b:pane_current_path}\#[fg=#313244,bg=default]"
# ============================================================# Window 名称# ============================================================
# 允许 tmux 根据程序自动命名:# zsh / nvim / vim / ssh 等set -g automatic-rename on
# 防止 shell / Kitty 把 hostname 强行写进 window nameset -g allow-rename offj下拉加载评论