mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 05:01:17 +08:00 
			
		
		
		
	use hostname instead of hostname -s
hostname -s is not available on every implementation of hostname, e.g. Cygwin uses hostname from coreutils which doesn't work.
This commit is contained in:
		
							parent
							
								
									b8b241f630
								
							
						
					
					
						commit
						f358f61414
					
				@ -8,7 +8,7 @@
 | 
			
		||||
 | 
			
		||||
# Machine name.
 | 
			
		||||
function box_name {
 | 
			
		||||
    [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
 | 
			
		||||
    [ -f ~/.box-name ] && cat ~/.box-name || hostname
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Directory info.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user