xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 18cf7ff719f514ce992d89cba6cbcad187eeddda

Update vifmrc-converter help message
Thanks to Svyatoslav Mishyn (a.k.a. juef).
Author: xaizek
Author date (UTC): 2015-06-17 18:46
Committer name: xaizek
Committer date (UTC): 2015-06-18 15:47
Parent(s): 13451543ffdc4b06ad75ad0ed49205f570363d19
Signing key:
Tree: 0d3d583897e4f5d38d9ef3ccbfbd84538728870e
File Lines added Lines deleted
src/vifmrc-converter.c 9 7
File src/vifmrc-converter.c changed (mode: 100644) (index 48f4493e8..9610a4cd1)
... ... static struct
221 221 .count = 0, .count = 0,
222 222 }; };
223 223
224 /* Help message. */
225 static const char *const USAGE =
226 "Usage: vifmrc-converter 0|1|2|3 [vifmrc_file vifminfo_file]\n\n"
227 "1 means comment commands in vifmrc and put more things to vifminfo\n"
228 "2 means convert colorscheme file only\n"
229 "3 means rename colorschemes only (add .vifm extension)";
230
224 231 #ifdef _WIN32 #ifdef _WIN32
225 232 static int is_dir(const char *file); static int is_dir(const char *file);
226 233 #endif #endif
 
... ... main(int argc, char **argv)
514 521
515 522 if(argc != 2 && argc != 4) if(argc != 2 && argc != 4)
516 523 { {
517 puts("Usage: vifmrc-converter 0|1|2 [vifmrc_file vifminfo_file]\n\n"
518 "1 means comment commands in vifmrc and put more things to vifminfo\n"
519 "2 means convert colorscheme file only");
524 puts(USAGE);
520 525 return 1; return 1;
521 526 } }
522 527 if(argv[1][1] != '\0' || (argv[1][0] != '0' && argv[1][0] != '1' && if(argv[1][1] != '\0' || (argv[1][0] != '0' && argv[1][0] != '1' &&
523 528 argv[1][0] != '2' && argv[1][0] != '3')) argv[1][0] != '2' && argv[1][0] != '3'))
524 529 { {
525 puts("Usage: vifmrc-converter 0|1|2|3 [vifmrc_file vifminfo_file]\n\n"
526 "1 means comment commands in vifmrc and put more things to vifminfo\n"
527 "2 means convert colorscheme file only\n"
528 "3 means convert colorscheme file only");
530 puts(USAGE);
529 531 return 1; return 1;
530 532 } }
531 533
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master