Add suggestion to use nano(1) if installed.
This commit is contained in:
parent
8951adc5f0
commit
77defc5e24
|
@ -1,3 +1,3 @@
|
||||||
set_minimal="cut dash e2fsprogs grep grub mdocml sed xargs"
|
set_minimal="cut dash e2fsprogs grep grub mdocml sed xargs"
|
||||||
set_basic="$set_minimal binutils bison bzip2 diffutils flex gawk gcc git gzip libcurses libstdc++ make patch pkg-config tar vim xz xorriso"
|
set_basic="$set_minimal binutils bison bzip2 diffutils ed flex gawk gcc git gzip libcurses libstdc++ nano make patch pkg-config tar vim xz xorriso"
|
||||||
sets="basic minimal"
|
sets="basic minimal"
|
||||||
|
|
|
@ -30,6 +30,8 @@ void suggest_editor(const char* filename)
|
||||||
if ( access("/bin/ed", X_OK) == 0 )
|
if ( access("/bin/ed", X_OK) == 0 )
|
||||||
fprintf(stderr, " Command 'ed' from package 'ed'\n");
|
fprintf(stderr, " Command 'ed' from package 'ed'\n");
|
||||||
fprintf(stderr, " Command 'editor' from package 'editor'\n");
|
fprintf(stderr, " Command 'editor' from package 'editor'\n");
|
||||||
|
if ( access("/bin/nano", X_OK) == 0 )
|
||||||
|
fprintf(stderr, " Command 'nano' from package 'nano'\n");
|
||||||
if ( access("/bin/vim", X_OK) == 0 )
|
if ( access("/bin/vim", X_OK) == 0 )
|
||||||
fprintf(stderr, " Command 'vim' from package 'vim'\n");
|
fprintf(stderr, " Command 'vim' from package 'vim'\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue