mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Emulate ls -F completely including sockets and FIFOs
This commit is contained in:
parent
cae14a8208
commit
12da2ff028
6
noice.c
6
noice.c
|
@ -409,6 +409,12 @@ printent(struct entry *ent, int active)
|
||||||
} else if (S_ISLNK(ent->mode)) {
|
} else if (S_ISLNK(ent->mode)) {
|
||||||
cm = '@';
|
cm = '@';
|
||||||
maxlen--;
|
maxlen--;
|
||||||
|
} else if (S_ISSOCK(ent->mode)) {
|
||||||
|
cm = '=';
|
||||||
|
maxlen--;
|
||||||
|
} else if (S_ISFIFO(ent->mode)) {
|
||||||
|
cm = '|';
|
||||||
|
maxlen--;
|
||||||
} else if (ent->mode & S_IXUSR) {
|
} else if (ent->mode & S_IXUSR) {
|
||||||
cm = '*';
|
cm = '*';
|
||||||
maxlen--;
|
maxlen--;
|
||||||
|
|
Loading…
Reference in a new issue