Skip to content

Commit

Permalink
fix(fish): ghostty shell integration
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed May 1, 2024
1 parent 592959c commit 697c62f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions home/programs/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ fish_add_path $GOPATH/bin
fish_add_path $CARGO_HOME/bin
fish_add_path $PNPM_HOME

# Ghostty supports auto-injection but nix-darwin hard overwrites XDG_DATA_DIRS
# which make it so that we can't use the auto-injection. We have to source
# manually. From https://github.com/mitchellh/nixos-config/blob/74ede9378860d4807780eac80c5d685e334d59e9/users/mitchellh/config.fish#L43-L51.
if set -q GHOSTTY_RESOURCES_DIR
source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
end

function newlinefix --on-event fish_prompt
if test -z "$NEW_LINE_BEFORE_PROMPT"
set -gx NEW_LINE_BEFORE_PROMPT 1
Expand Down

0 comments on commit 697c62f

Please sign in to comment.