aboutsummaryrefslogtreecommitdiffstats
path: root/opendircolors.c
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-04-27 17:54:25 -0400
committerCameron Katri <me@cameronkatri.com>2021-04-27 17:54:25 -0400
commitfab6c2fb8df283123d8e259be7c70ae5f391f3bc (patch)
treee5b5e87bfd17e8637c58955509ffcbd3c440c2be /opendircolors.c
parent82d8956ab4790196034417d148fcb73812b269d9 (diff)
downloadopendircolors-fab6c2fb8df283123d8e259be7c70ae5f391f3bc.tar.gz
opendircolors-fab6c2fb8df283123d8e259be7c70ae5f391f3bc.tar.zst
opendircolors-fab6c2fb8df283123d8e259be7c70ae5f391f3bc.zip
Write manpages for dirconvert and opendircolors
Diffstat (limited to 'opendircolors.c')
-rw-r--r--opendircolors.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/opendircolors.c b/opendircolors.c
index da87fed..bda00dc 100644
--- a/opendircolors.c
+++ b/opendircolors.c
@@ -46,6 +46,7 @@ static const struct option long_options[] = { /* no clang-format */
{ "bourne-shell", no_argument, NULL, 'b' }, /**/
{ "sh", no_argument, NULL, 'b' }, /**/
{ "csh", no_argument, NULL, 'c' }, /**/
+ { "c-shell", no_argument, NULL, 'c' }, /**/
{ NULL, no_argument, NULL, 0 }
};
@@ -67,18 +68,18 @@ main(int argc, char **argv)
int ch;
FILE *fd;
char *prefix = "LS_COLORS='";
- char *suffix = "';\nexport LS_COLORS";
+ char *suffix = "';\nexport LS_COLORS;";
char *lsprefix = "LSCOLORS='";
- char *lssuffix = "';\nexport LSCOLORS";
+ char *lssuffix = "';\nexport LSCOLORS;";
while (
(ch = getopt_long(argc, argv, "hbc", long_options, NULL)) != -1) {
switch (ch) {
case 'b':
prefix = "LS_COLORS='";
- suffix = "';\nexport LS_COLORS";
+ suffix = "';\nexport LS_COLORS;";
lsprefix = "LSCOLORS='";
- lssuffix = "';\nexport LSCOLORS";
+ lssuffix = "';\nexport LSCOLORS;";
break;
case 'c':
prefix = "setenv LS_COLORS '";