Skip to content

Commit

Permalink
run an interactive shell
Browse files Browse the repository at this point in the history
This causes shells like bash and zsh to load basic configuration where most custom aliases etc are stored
  • Loading branch information
codekitchen committed Dec 7, 2020
1 parent 4297290 commit b0cac7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ int read_command(size_t max_to_show, const char *command, size_t *count, size_t
abort_ltz(dup(child_stdout[1]));
close(2);
abort_ltz(dup(child_stderr[1]));
execl(shell, shell, "-c", command, NULL);
execl(shell, shell, "-ic", command, NULL);
}

// parent
Expand Down

0 comments on commit b0cac7d

Please sign in to comment.