mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	"fishy" theme: Fix "~" use in prompt
Actually replace the value of the environment variable $HOME with "~" instead of appending the tilde in front of the prompt.
This commit is contained in:
		
							parent
							
								
									2e3731c5b1
								
							
						
					
					
						commit
						b15918d414
					
				@ -5,7 +5,7 @@ _fishy_collapsed_wd() {
 | 
			
		||||
   BEGIN {
 | 
			
		||||
      binmode STDIN,  ":encoding(UTF-8)";
 | 
			
		||||
      binmode STDOUT, ":encoding(UTF-8)";
 | 
			
		||||
   }; s|^$HOME|~|g; s|/([^/.])[^/]*(?=/)|/$1|g; s|/\.([^/])[^/]*(?=/)|/.$1|g;
 | 
			
		||||
   }; s|^$ENV{HOME}|~|g; s|/([^/.])[^/]*(?=/)|/$1|g; s|/\.([^/])[^/]*(?=/)|/.$1|g
 | 
			
		||||
')
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user