mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-11 22:53:04 +00:00
feat: support GITNEXUS_HOME env var to customize global directory
Allow users to override the default ~/.gitnexus directory by setting the GITNEXUS_HOME environment variable.
This commit is contained in:
parent
d9ba9aa998
commit
79ec9f6052
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ export const addToGitignore = async (repoPath: string): Promise<void> => {
|
|||
* Get the path to the global GitNexus directory
|
||||
*/
|
||||
export const getGlobalDir = (): string => {
|
||||
return path.join(os.homedir(), '.gitnexus');
|
||||
return process.env.GITNEXUS_HOME || path.join(os.homedir(), '.gitnexus');
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue