mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Write commant at beginning of .fishd file mentioning that the file should not be edited
darcs-hash:20060617140406-ac50b-c3987895fbc747212a70618acf8a18b42601e8a8.gz
This commit is contained in:
parent
c9e98c2eef
commit
f836bd41c0
1 changed files with 7 additions and 1 deletions
8
fishd.c
8
fishd.c
|
@ -88,7 +88,9 @@ time the original barrier request was sent have been received.
|
|||
/**
|
||||
Small greeting to show that fishd is running
|
||||
*/
|
||||
#define GREETING "#Fish universal variable daemon\n"
|
||||
#define GREETING "# Fish universal variable daemon\n"
|
||||
|
||||
#define SAVE_MSG "# This file is automatically generated by the fishd universal variable daemon.\n# Do NOT edit it directly, your changes will be overwritten.\n"
|
||||
|
||||
/**
|
||||
The name of the save file. The hostname is appended to this.
|
||||
|
@ -426,7 +428,11 @@ void load_or_save( int save)
|
|||
q_init( &c.unsent );
|
||||
|
||||
if( save )
|
||||
{
|
||||
|
||||
write( c.fd, SAVE_MSG, strlen(SAVE_MSG) );
|
||||
enqueue_all( &c );
|
||||
}
|
||||
else
|
||||
read_message( &c );
|
||||
|
||||
|
|
Loading…
Reference in a new issue