| 
									
										
										
										
											2016-06-14 22:31:48 -07:00
										 |  |  | # return the shell profile file based on users' preference shell | 
					
						
							|  |  |  | def shell_profile | 
					
						
							|  |  |  |   opoo "shell_profile has been deprecated in favor of Utils::Shell.profile" | 
					
						
							|  |  |  |   case ENV["SHELL"] | 
					
						
							|  |  |  |   when %r{/(ba)?sh} then "~/.bash_profile" | 
					
						
							|  |  |  |   when %r{/zsh} then "~/.zshrc" | 
					
						
							|  |  |  |   when %r{/ksh} then "~/.kshrc" | 
					
						
							|  |  |  |   else "~/.bash_profile" | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end | 
					
						
							| 
									
										
										
										
											2016-10-01 20:15:17 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | module Tty | 
					
						
							|  |  |  |   module_function | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def white | 
					
						
							|  |  |  |     reset.bold | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end | 
					
						
							| 
									
										
										
										
											2016-10-02 20:39:43 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | def puts_columns(items) | 
					
						
							|  |  |  |   odeprecated "puts_columns", "puts Formatter.columns" | 
					
						
							|  |  |  |   puts Formatter.columns(items) | 
					
						
							|  |  |  | end |