Ghostty terminal configurations

Hello,

I saw lately that ghostty is a terminal emulator that supports ubuntu 25.04 and has a deb file to install. So I gave it a try and here are some notes of what I achieved thus far:

  1. In order to install it under plucky is fairly easy since by going here: GitHub - mkasberg/ghostty-ubuntu: Ubuntu/Debian (.deb) packages for Ghostty

  2. After installation some tweaking took place, which was to tamper with the file: ~/.config/ghostty/config
    with the options:
    background-opacity = 0.8 (the terminal to have some opacity)
    background-blur-radius = 20 (outside the terminal some bluriness)
    window-decoration = true (show titlebar)
    theme = Purple Rain (colors of terminal and fonts)
    cursor-style = block (the style of the cursor)
    shell-integration = bash (which shell is used)
    shell-integration-features = true (see here:https://ghostty.org/docs/features/shell-integration)
    window-theme = light (use light theme for terminal)
    gtk-titlebar = true (same effect as window-decoration, if set to false though the terminal has rounded corners)
    window-width=120 (close to 80x30 in gnome terminal)
    window-height=35
    in parenthesis explanation of the options

I wasn’t capable at the time to add a scrollbar to the right hand side though.

  1. After the configuration of ghostty is set we can add more customization to the terminal. In order to do so we can download the oh-my-bash themes by issuing the command: bash -c “$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)”

have in mind that this command will create a backup of your default bashrc file.

There is a lot of documentation on how you can change themes.

  1. I wanted to add interactive folders, which works for gnome-terminal as well, and it wasn’t so clear from my searching, so I write down here the steps:
    First we have to create a custom alias. This can take place under:
    ~/.oh-my-bash/custom/example.aliases.sh
    and add the line:
    alias ls=‘ls --hyperlink=always --color=auto’

In order for this to take effect the alias should be triggered from:
.bashrc file
adding the string example here:

Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*)

Custom aliases may be added to ~/.oh-my-bash/custom/aliases/

Example format: aliases=(vagrant composer git-avh)

Add wisely, as too many aliases slow down shell startup.

aliases=(
general
example
)

Now you will be able to type ls and in every file or folder, by doing Ctrl+left click, you will be able to either open the folder under nautilus or open the file.
The option --color=auto is needed, otherwise the alias will change the output color of the ls command.

Regards!

Hello @Claus7 :slight_smile:

Glad to see you made it over here from the Ubuntu Forums.

Can you please provide us with more information, like Ubuntu version, what steps you tried, which package are you referring to.

Thanks.

Hello @rubi1200,

I had the post in edit version for a long time, so I think that’s why you are asking me this. Now the post has been finalized (still I’m trying to getting used to ubuntu discourse). If sth is still not clear, please let me know. The thing is that I wanted to use an interactive terminal and it wasn’t so straightforward, as well as to be able to customize it a little.

Regards!

1 Like

Now it makes sense :slight_smile:

It won’t take long to get used to the platform and we hope you will stick around.

Regards,
Rubi

1 Like