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

Fix fish warning by disowning background process #5

Merged
merged 3 commits into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fig.fish
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ if [ -d /Applications/Fig.app -o -d ~/Applications/Fig.app ] && command -v fig 1
end

function fig_precmd --on-event fish_prompt
fig bg:prompt $fish_pid (tty) &
fig bg:prompt $fish_pid (tty) &; disown
end

function fig_preexec --on-event fish_preexec
fig bg:exec $fish_pid (tty) &
fig bg:exec $fish_pid (tty) &; disown
end

set FIG_SHELL_VAR 1
Expand Down
3 changes: 1 addition & 2 deletions tools/install_and_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ install_fig() {
cd ~/.fig/autocomplete

{
curl https://codeload.github.com/withfig/autocomplete/tar.gz/master | \
tar -xz --strip-components=2 autocomplete-master/specs
curl -s "https://waitlist.withfig.com/specs?version=latest" | tar -xz --strip-components=1 specs

} || {
error "pulling latest autocomplete files failed"
Expand Down