Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
commit
b0c936e8ec
@ -7,7 +7,7 @@ que des variables d'environnement dans un terminal.
|
|||||||
|
|
||||||
## Intallation :
|
## Intallation :
|
||||||
|
|
||||||
Il suffit de clone le repos, celui-ci possède un fichier déjà compilé
|
Il suffit de télécharger une release qui possède un fichier précompilé
|
||||||
```bash
|
```bash
|
||||||
./zzsh
|
./zzsh
|
||||||
```
|
```
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
int len(void** list)
|
int len(void** list)
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
for (index = 0; list[index]!=NULL; index++);
|
for (index = 0; list[index]!=NULL; index++);
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,11 +25,13 @@ static char* get_prompt(lst** env)
|
|||||||
strcpy(cwd, "~");
|
strcpy(cwd, "~");
|
||||||
strcat(cwd, cwd + strlen(home));
|
strcat(cwd, cwd + strlen(home));
|
||||||
}
|
}
|
||||||
out = str_merger(8, "[", user, "@", hostname_buff, "]", " > ", cwd, " ");
|
out = str_merger(8, user, "[", "@", hostname_buff, "]", " > ", cwd, " ");
|
||||||
|
char* temp = out;
|
||||||
if (strcmp(user, "root") == 0)
|
if (strcmp(user, "root") == 0)
|
||||||
out = str_merger(2, out, "# ");
|
out = str_merger(2, "# ", out);
|
||||||
else
|
else
|
||||||
out = str_merger(2, out, "$ ");
|
out = str_merger(2, "$ ", out);
|
||||||
|
free(temp);
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user