diff options
Diffstat (limited to '')
-rw-r--r-- | command/ls.c (renamed from src/commands/ls.c) | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/commands/ls.c b/command/ls.c index e8d58d0..8ed796f 100644 --- a/src/commands/ls.c +++ b/command/ls.c @@ -1,11 +1,16 @@ -#include "../command.h" +#include "command.h" +#include "lslib.h" #include <grp.h> #include <pwd.h> #include <dirent.h> #include <ftw.h> #include <limits.h> +#include <stdlib.h> #include <string.h> +#include <errno.h> +#include <unistd.h> +#include <sys/ioctl.h> #define FILE_COLOR ANSCII BLACK COLOR #define DIR_COLOR ANSCII BOLD NEXT NORMAL BLUE COLOR @@ -17,6 +22,12 @@ #define BLK_COLOR ANSCII BOLD NEXT NORMAL YELLOW COLOR #define SOCK_COLOR ANSCII BOLD NEXT NORMAL MAGENTA COLOR +enum When { + YES, + NO, + AUTO +}; + static struct { bool hidden; bool hide_dot; |