micro-utils/config.h

39 lines
739 B
C
Raw Normal View History

2023-11-14 20:13:31 +00:00
#ifndef _CONFIG_H
#define _CONFIG_H
2023-11-24 08:38:47 +00:00
/* (cat tee wc) */
2023-11-14 20:13:31 +00:00
#define BUF_SIZE 4096
2023-11-22 12:02:09 +00:00
/* Random source (shred) */
2023-11-14 20:13:31 +00:00
#define RAND_SOURCE "/dev/urandom"
2023-11-17 12:29:29 +00:00
/* format for printf (head) */
#define HEAD_FMT "==> %s <==\n"
2023-11-22 12:02:09 +00:00
/* block size (du)*/
2023-11-22 10:58:43 +00:00
#define BLK_SIZE 512
2023-11-22 18:36:45 +00:00
/* mount config */
#define MOUNT_CFG "/etc/fstab"
2023-11-28 19:38:37 +00:00
/* colors for ls */
#define LS_DIR_COLOR "\033[1;34m"
#define LS_LINK_COLOR "\033[1;35m"
2023-11-29 06:07:21 +00:00
#define LS_SOCK_COLOR LS_LINK_COLOR
#define LS_FIFO_COLOR LS_LINK_COLOR
2023-11-28 19:38:37 +00:00
#define LS_EXE_COLOR "\033[1;32m"
2023-11-22 18:36:45 +00:00
/* RunComm prompt */
#define RC_PS "> "
2023-11-14 20:25:45 +00:00
/* Options: To disable, comment line */
2023-11-14 20:13:31 +00:00
/* Add escape-char support in echo */
#define ECHO_FANCY
2023-11-14 20:25:45 +00:00
/* getloadavg() unavailable in android os */
#ifndef __ANDROID__
#define UPTIME_LOADAVG
#endif
2023-11-14 20:13:31 +00:00
#endif