mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
19 lines
474 B
Nix
19 lines
474 B
Nix
{ghostty, ...}: let
|
|
pkg = ghostty.packages.x86_64-linux.default;
|
|
in {
|
|
xdg.configFile."ghostty/config".source = ./ghostty.config;
|
|
|
|
programs.zsh.initExtra = ''
|
|
# load ghostty integration (responsible for OSC 133 aka sementic prompts)
|
|
if [[ $TERM != "dumb" ]]; then
|
|
autoload -Uz -- ${pkg}/share/ghostty/shell-integration/zsh/ghostty-integration
|
|
ghostty-integration
|
|
unfunction ghostty-integration
|
|
fi
|
|
'';
|
|
|
|
home.packages = [
|
|
pkg
|
|
];
|
|
}
|