Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
fix: ensure we use Apple builtin nc, rather than GNU
Browse files Browse the repository at this point in the history
  • Loading branch information
mschrage committed Apr 15, 2021
1 parent b243e82 commit 9008973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fig.fish
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ -d /Applications/fig.app -o -d ~/Applications/fig.app ] && command -v fig 1
if [ -z "$FIG_SHELL_VAR" ]

function fig_keybuffer --on-signal SIGUSR1
echo fig bg:fish-keybuffer $TERM_SESSION_ID $FIG_INTEGRATION_VERSION 0 (commandline -C) \"(commandline)\" | base64 | nc -U /tmp/fig.socket
echo fig bg:fish-keybuffer $TERM_SESSION_ID $FIG_INTEGRATION_VERSION 0 (commandline -C) \"(commandline)\" | base64 | /usr/bin/nc -U /tmp/fig.socket
end
function fig_precmd --on-event fish_prompt
Expand Down
2 changes: 1 addition & 1 deletion zle.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function fig_zsh_redraw() {
fi


( echo fig bg:zsh-keybuffer $TERM_SESSION_ID $FIG_INTEGRATION_VERSION $HISTNO $CURSOR \""$BUFFER"\" | base64 | nc -U /tmp/fig.socket &)
( echo fig bg:zsh-keybuffer $TERM_SESSION_ID $FIG_INTEGRATION_VERSION $HISTNO $CURSOR \""$BUFFER"\" | base64 | /usr/bin/nc -U /tmp/fig.socket &)
}

function fig_hide() {
Expand Down

0 comments on commit 9008973

Please sign in to comment.