summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/cmdedit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index 93758c9..bc9cc5e 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -58,9 +58,8 @@
#if ENABLE_FEATURE_COMMAND_EDITING
-#if ENABLE_FEATURE_COMMAND_USERNAME_COMPLETION || ENABLE_FEATURE_SH_FANCY_PROMPT
-#define ENABLE_FEATURE_GETUSERNAME_AND_HOMEDIR 1
-#endif
+#define ENABLE_FEATURE_GETUSERNAME_AND_HOMEDIR \
+(ENABLE_FEATURE_COMMAND_USERNAME_COMPLETION || ENABLE_FEATURE_SH_FANCY_PROMPT)
/* Maximum length of the linked list for the command line history */
#if !ENABLE_FEATURE_COMMAND_HISTORY