mirror of
https://github.com/jarun/nnn.git
synced 2025-03-31 18:46:33 +00:00
Emulate ls -F completely including sockets and FIFOs
This commit is contained in:
parent
cae14a8208
commit
12da2ff028
1 changed files with 6 additions and 0 deletions
6
noice.c
6
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--;
|
||||
|
|
Loading…
Add table
Reference in a new issue