noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | LICENSE

commit 12da2ff0280329a65667d38c9f05353c734b932b
parent cae14a8208c0a0e33fb0ef7d61400dd774b4b711
Author: lostd <lostd@2f30.org>
Date:   Sat,  1 Nov 2014 01:55:26 +0200

Emulate ls -F completely including sockets and FIFOs

Diffstat:
noice.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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--;