diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-09 04:00:28 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-09 04:00:28 +0530 |
commit | 5cb39b0db36a4afd30a0578799cd85dc28ed153c (patch) | |
tree | f43c6208500598fac94cf64aa82d79403df598d8 /src/nnn.c | |
parent | 7bf7894022d53e9f98bb11fc8f42bc56b62ae8b4 (diff) | |
download | nnn-5cb39b0db36a4afd30a0578799cd85dc28ed153c.tar.gz |
Show mime in file details
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -3090,11 +3090,15 @@ static bool show_stats(const char *fpath, const struct stat *sb) ++p; } - fprintf(fp, " %s", begin); + fprintf(fp, " %s\n ", begin); + + /* Show the file mime type */ + p = get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, fpath, FALSE); + fprintf(fp, "%s", g_buf); } } - fprintf(fp, "\n\n"); + fprintf(fp, "\n"); fclose(fp); close(fd); |