|  | @@ -102,13 +102,13 @@ void show_current_dir(const char* before, const char* after) {
 | 
	
		
			
				|  |  |          addperror("Erreur getcwd()");
 | 
	
		
			
				|  |  |      } else {
 | 
	
		
			
				|  |  |          if(before == NULL && after == NULL){
 | 
	
		
			
				|  |  | -            printf(":%s", buffer);
 | 
	
		
			
				|  |  | +            printf("%s", buffer);
 | 
	
		
			
				|  |  |          } else if(before == NULL){
 | 
	
		
			
				|  |  | -            printf(":%s%s", buffer, after);
 | 
	
		
			
				|  |  | +            printf("%s%s", buffer, after);
 | 
	
		
			
				|  |  |          } else if(after == NULL){
 | 
	
		
			
				|  |  | -            printf("%s:%s", before, buffer);
 | 
	
		
			
				|  |  | +            printf("%s%s", before, buffer);
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  | -            printf("%s:%s%s", before, buffer, after);
 | 
	
		
			
				|  |  | +            printf("%s%s%s", before, buffer, after);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      fflush(stdout);
 | 
	
	
		
			
				|  | @@ -137,14 +137,16 @@ int main(int argc, char* argv[]) {
 | 
	
		
			
				|  |  |      //Declaration variables
 | 
	
		
			
				|  |  |      CommandTab ct;
 | 
	
		
			
				|  |  |      int result;
 | 
	
		
			
				|  |  | -    char line[BUFFER_SIZE];
 | 
	
		
			
				|  |  | +    char line[BUFFER_SIZE], before[BUFFER_SIZE];
 | 
	
		
			
				|  |  |      //Initialisation structures
 | 
	
		
			
				|  |  |      error_finit("mysh.log");
 | 
	
		
			
				|  |  |      ini_pid_list(&pidlist);
 | 
	
		
			
				|  |  | -    //BOucle infini de lecture
 | 
	
		
			
				|  |  | +    //Preparation affichage
 | 
	
		
			
				|  |  | +    sprintf(before, "\x1b[32m%s:\x1b[36m", getlogin());
 | 
	
		
			
				|  |  | +    //Boucle infini de lecture
 | 
	
		
			
				|  |  |      while(!exitsh){
 | 
	
		
			
				|  |  |          //Affichage repertoire
 | 
	
		
			
				|  |  | -        show_current_dir(getlogin(), "> ");      
 | 
	
		
			
				|  |  | +        show_current_dir(before, ">\x1b[0m ");      
 | 
	
		
			
				|  |  |          //Lecture ligne
 | 
	
		
			
				|  |  |          if(get_line(line) == SHELL_ERR){
 | 
	
		
			
				|  |  |              error.print("Impossible de lire les commandes");
 |