aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorGravatar lostd <lostd@2f30.org>2014-11-01 01:55:26 +0200
committerGravatar lostd <lostd@2f30.org>2014-11-01 01:55:26 +0200
commit12da2ff0280329a65667d38c9f05353c734b932b (patch)
treef7541963aadf798aa43eb806afb2a54bbc2f8052 /noice.c
parentcae14a8208c0a0e33fb0ef7d61400dd774b4b711 (diff)
downloadnnn-12da2ff0280329a65667d38c9f05353c734b932b.tar.gz
Emulate ls -F completely including sockets and FIFOs
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index 81df907..a9f08c4 100644
--- a/noice.c
+++ b/noice.c
@@ -409,6 +409,12 @@ printent(struct entry *ent, int active)
} else if (S_ISLNK(ent->mode)) {
cm = '@';
maxlen--;
+ } else if (S_ISSOCK(ent->mode)) {
+ cm = '=';
+ maxlen--;
+ } else if (S_ISFIFO(ent->mode)) {
+ cm = '|';
+ maxlen--;
} else if (ent->mode & S_IXUSR) {
cm = '*';
maxlen--;