comment for ls-fun
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								f5a8cd1259
							
						
					
				
			
			
				commit
				
					
						158fbccc82
					
				
			
		
					 1 changed files with 3 additions and 2 deletions
				
			
		
							
								
								
									
										5
									
								
								ls-fun
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								ls-fun
									
										
									
									
									
								
							| 
						 | 
					@ -1,8 +1,9 @@
 | 
				
			||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					# Found somewhere on the net
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ls with colors :)
 | 
					# ls with colors :)
 | 
				
			||||||
ls "$@" | perl -pe '$i=$.;s//\e[3@{[$i++%7+1]}m/g'
 | 
					ls "$@" | perl -pe '$i=$.;s//\e[3@{[$i++%7+1]}m/g'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# stop colors
 | 
					# stop colors, if needed
 | 
				
			||||||
echo -n "\033[m"
 | 
					#echo -n "\033[m"
 | 
				
			||||||
#echo -n -e "\033[m"
 | 
					#echo -n -e "\033[m"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue