Commit Graph

6 Commits

Author SHA1 Message Date
Érico Rolim 815fdf1294 Fix hostname printing.
ssh doesn't set HOSTNAME in env, that has to be determined separately.
What indicates a ssh session are some SSH_* env vars.
2021-02-22 12:34:34 -03:00
Érico Rolim 14cb4cbed4 Avoid using any globals in language detection. 2021-02-22 05:00:11 -03:00
Érico Rolim 81c7f243a7 Add framework to display detected programming languages.
Very dumb initial C detection.
2021-02-22 04:43:40 -03:00
Érico Rolim dc4a59881c Enable git status reporting.
Also reorganize git.c to contain most of the implementation details,
main just calls the functions without any arguments.
2021-02-22 02:40:31 -03:00
Érico Rolim fdf2b43b34 Move output and path handling code outside main.
Temporarily add static to translation strings to allow compilation to
work.
2021-02-22 01:53:44 -03:00
Érico Rolim d8b6432c6b Fix git.h, move it to ep.h. 2021-02-22 01:43:22 -03:00