diff options
author | lostd <lostd@2f30.org> | 2014-11-01 01:55:26 +0200 |
---|---|---|
committer | lostd <lostd@2f30.org> | 2014-11-01 01:55:26 +0200 |
commit | 12da2ff0280329a65667d38c9f05353c734b932b (patch) | |
tree | f7541963aadf798aa43eb806afb2a54bbc2f8052 /noice.c | |
parent | cae14a8208c0a0e33fb0ef7d61400dd774b4b711 (diff) | |
download | nnn-12da2ff0280329a65667d38c9f05353c734b932b.tar.gz |
Emulate ls -F completely including sockets and FIFOs
Diffstat (limited to 'noice.c')
-rw-r--r-- | noice.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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--; |