mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add suggestion to use nano(1) if installed.
This commit is contained in:
parent
8951adc5f0
commit
77defc5e24
2 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue