Changes to make fish use the relocated fishd instead of the installed one, if it exists

This commit is contained in:
ridiculousfish
2012-07-18 10:50:38 -07:00
parent 150789690f
commit e9f43f1097
3 changed files with 47 additions and 23 deletions

13
env.h
View File

@@ -52,11 +52,20 @@ enum{
}
;
/* A struct of configuration directories, determined in main() that fish will optionally pass to env_init.
*/
struct config_paths_t
{
wcstring data; // e.g. /usr/local/share
wcstring sysconf; // e.g. /usr/local/etc
wcstring doc; // e.g. /usr/local/share/doc/fish
wcstring bin; // e.g. /usr/local/bin
};
/**
Initialize environment variable data
*/
void env_init();
void env_init(const struct config_paths_t *paths = NULL);
/**
Destroy environment variable data
@@ -164,6 +173,8 @@ void env_export_arr(bool recalc, null_terminated_array_t<char> &result);
*/
wcstring_list_t env_get_names( int flags );
/**
Update the PWD variable
directory