-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathghostty.config
More file actions
91 lines (71 loc) · 3.39 KB
/
Copy pathghostty.config
File metadata and controls
91 lines (71 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# ==============================
# LOOK & FEEL
# ==============================
# Color scheme for the terminal (dark theme with vibrant colors)
theme = Monokai Soda
# Cursor appears as a filled block instead of a line or underline
cursor-style = block
# Cursor stays solid without blinking (easier to locate, less distracting)
cursor-style-blink = false
# Add 10px of vertical padding inside the window (top and bottom)
window-padding-y = 10
# Add 10px of horizontal padding inside the window (left and right)
window-padding-x = 10
# Make the background slightly transparent (0 = fully transparent, 1 = fully opaque)
background-opacity = 0.98
# New windows always start in the home directory, not the current directory
# Set to true if you want new windows to open in the same directory as the current one
window-inherit-working-directory = false
# ==============================
# KEYBINDINGS
# ==============================
## ----------------------------
## macOS-specific keybindings
## ----------------------------
## want this for x11?
## -> check out https://oidamo.de/blog/ghostty
# Global hotkey (works even when Ghostty is not focused) to show/hide the terminal
# Similar to dropdown terminals like iTerm's hotkey window
keybind = global:option+space=toggle_visibility
# Navigate between tabs using Command + Left/Right arrows
keybind = cmd+arrow_left=previous_tab
keybind = cmd+arrow_right=next_tab
# Font size controls (note: using these keys because of a broken keyboard mapping)
# Increase font size by 1 point (normally would use cmd+plus)
keybind = cmd+bracket_right=increase_font_size:1
# Decrease font size by 1 point (normally would use cmd+minus)
keybind = cmd+slash=decrease_font_size:1
# Reset font size back to the default
keybind = cmd+digit_0=reset_font_size
# ==============================
# MACOS SETTINGS
# ==============================
# Keep Option key behavior standard (for accented characters and special symbols)
# Setting to true would make Option work like Alt on Linux, but breaks dead keys for accents
macos-option-as-alt = false
# In fullscreen mode, show the menu bar (instead of native macOS fullscreen behavior)
# Makes it easier to access menu items without exiting fullscreen
macos-non-native-fullscreen = visible-menu
# Show tabs in the title bar area (native macOS tab style)
# Provides a more integrated macOS experience
macos-titlebar-style = tabs
# Always save and restore window positions, tabs, and working directories between sessions
# Note: This feature is not supported on Linux
window-save-state = always
# Quit Ghostty completely when the last window is closed (like most macOS apps)
# Set to false if you want Ghostty to stay running in the dock/menu bar
quit-after-last-window-closed = true
# ==============================
# SHELL INTEGRATION
# ==============================
# Enable specific shell integration features:
# - no-cursor: Don't let shell control cursor (Ghostty manages it)
# - sudo: Preserve environment when using sudo
# - title: Allow shell to set window title dynamically (shows current dir/command)
# - ssh-env: Forward environment variables when using ssh
shell-integration-features = no-cursor,sudo,title,ssh-env
# Enable shell integration for zsh (provides better prompt, tab completion, etc.)
shell-integration = zsh
# Map Shift+Enter to send an escape sequence (\x1b\r)
# Useful for multiline commands or special shell behaviors
keybind = shift+enter=text:\x1b\r