Ghostty — современный терминал с поддержкой GPU ускорения, написанный на Zig. Отличается высокой производительностью и гибкой конфигурацией.
sudo pacman -S ghostty
sudo apt install ghostty
sudo dnf install ghostty
git clone https://github.com/mitchellh/ghostty
cd ghostty
zig build
sudo cp ghostty /usr/local/bin/
Конфигурация Ghostty находится в:
~/.config/ghostty/config
mkdir -p ~/.config/ghostty
nano ~/.config/ghostty/config
# Шрифт
font-family = JetBrains Mono
font-size = 12
# Тема
theme = dark
# Прозрачность
background-opacity = 0.9
# Курсор
cursor-style = block
cursor-color = #ff0000
# Скроллбар
scrollbar-width = thin
# Горячие клавиши
keybind = ctrl+shift+c copy_to_clipboard
keybind = ctrl+shift+v paste_from_clipboard
keybind = ctrl+shift+n new_window
keybind = ctrl+shift+t new_tab
font-family = "JetBrains Mono"
font-size = 12
sudo pacman -S ttf-jetbrains-mono-nerd
font-family = "JetBrainsMono Nerd Font"
font-size = 12
theme = dark
theme = light
background = #1e1e1e
foreground = #d4d4d4
cursor-color = #ffffff
selection-background = #264f78
selection-foreground = #ffffff
keybind = ctrl+shift+c copy_to_clipboard
keybind = ctrl+shift+v paste_from_clipboard
keybind = ctrl+shift+t new_tab
keybind = ctrl+shift+w close_tab
keybind = ctrl+shift+1 switch_to_tab 1
keybind = ctrl+shift+2 switch_to_tab 2
keybind = ctrl+shift+3 switch_to_tab 3
keybind = ctrl+shift+n new_window
keybind = ctrl+shift+q close_window
[profile-ssh]
command = ssh user@server
working-directory = ~/
Запуск профиля:
ghostty --profile=ssh
[profile-projects]
working-directory = ~/projects
Добавьте в ~/.zshrc:
export GHOSTTY_RESOURCES_DIR=/usr/share/ghostty
Добавьте в ~/.bashrc:
export GHOSTTY_RESOURCES_DIR=/usr/share/ghostty
Проверьте поддержку композитора в вашей системе:
echo $XDG_SESSION_TYPE
Должно быть wayland или x11.
# Запуск Ghostty с конкретным профилем
ghostty --profile=myprofile
# Запуск с конкретной командой
ghostty --command="htop"
# Запуск в конкретном каталоге
ghostty --directory=~/projects
# Проверка версии
ghostty --version
Автор: ordanax.github.io
Telegram: @linux4at
MAX: Присоединиться
Комментарии