Skip to content

Instantly share code, notes, and snippets.

@elkuno213
Last active April 15, 2025 06:26
Show Gist options
  • Save elkuno213/05ff9bc034667383ace6242eb7e588d9 to your computer and use it in GitHub Desktop.
Save elkuno213/05ff9bc034667383ace6242eb7e588d9 to your computer and use it in GitHub Desktop.
Ghostty config

To download and set up the Ghostty configuration file from the provided Gist, follow these steps:

  1. Download the Config File: Open a terminal and run the following command to download the configuration file directly to your $HOME/.config/ghostty/ directory:

    mkdir -p $HOME/.config/ghostty/
    wget -q -O $HOME/.config/ghostty/config https://gist.githubusercontent.com/elkuno213/05ff9bc034667383ace6242eb7e588d9/raw/config
  2. Verify the File: After downloading, you can verify that the file is correctly placed by checking its contents:

    cat $HOME/.config/ghostty/config
  3. Apply the Configuration: If Ghostty is running, you might need to reload the configuration. Check the Gist for the reload keybinding, which is alt+r in this case.

This configuration includes key bindings for splitting, navigating, scrolling, resizing, and other actions, along with a theme setting.

# ---------------------------------------------
# Theme
theme = Snazzy Soft
# ---------------------------------------------
# Key bindings
# Split
keybind = alt+v=new_split:right
keybind = alt+h=new_split:down
# Navigate
keybind = alt+up=goto_split:top
keybind = alt+down=goto_split:bottom
keybind = alt+left=goto_split:left
keybind = alt+right=goto_split:right
# Scroll
keybind = alt+page_up=scroll_page_lines:-8
keybind = alt+page_down=scroll_page_lines:8
# Resize
keybind = ctrl+shift+up=resize_split:up,10
keybind = ctrl+shift+down=resize_split:down,10
keybind = ctrl+shift+left=resize_split:left,10
keybind = ctrl+shift+right=resize_split:right,10
# Others
keybind = alt+w=close_window
keybind = alt+r=reload_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment