Skip to content

Commit

Permalink
Remove root indicator on Haiku: it always runs as root
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-arch committed Jul 31, 2024
1 parent e811c83 commit 89e8cd7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/prompt.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@
#define CTLESC '\001'
#define CTLNUL '\177'

#define ROOT_IND "\001\x1b[1;31m\002R\001\x1b[0m\002"
#define ROOT_IND_NO_COLOR "R"
#ifdef __HAIKU__
/* No need for a root indicator on Haiku: it always runs as root. */
# define ROOT_IND ""
# define ROOT_IND_NO_COLOR ""
#else
# define ROOT_IND "\001\x1b[1;31m\002R\001\x1b[0m\002"
# define ROOT_IND_NO_COLOR "R"
#endif
#define ROOT_IND_SIZE 17
#define RDONLY_IND "RO\001\x1b[0m\002"
#define RDONLY_IND_SIZE (MAX_COLOR + 8 + 1)
Expand Down

0 comments on commit 89e8cd7

Please sign in to comment.