Add suggestion to use nano(1) if installed.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-11-03 08:26:10 +01:00
parent 8951adc5f0
commit 77defc5e24
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,3 @@
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"

View File

@ -30,6 +30,8 @@ void suggest_editor(const char* filename)
if ( access("/bin/ed", X_OK) == 0 )
fprintf(stderr, " Command 'ed' from package 'ed'\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 )
fprintf(stderr, " Command 'vim' from package 'vim'\n");
}