[zsh] Bring back init-env-tilde-paths
Apparently it was load bearing
This commit is contained in:
		
							parent
							
								
									71cf2d52f6
								
							
						
					
					
						commit
						734ab0a7a5
					
				
					 2 changed files with 21 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								zsh/func/init-env-tilde-paths
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								zsh/func/init-env-tilde-paths
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | ||||||
|  | #!/usr/bin/env zsh | ||||||
|  | # Eryn Wells <eryn@erynwells.me> | ||||||
|  | 
 | ||||||
|  | function init-env-tilde-paths | ||||||
|  | { | ||||||
|  |     for candidate_code_path in \ | ||||||
|  |         "$HOME/Code" \ | ||||||
|  |         "$HOME/Developer" \ | ||||||
|  |         "$HOME/Documents/Code" | ||||||
|  |     do | ||||||
|  |         if [[ ! -d "$candidate_code_path" ]]; then | ||||||
|  |             continue | ||||||
|  |         fi | ||||||
|  | 
 | ||||||
|  |         c="$candidate_code_path" | ||||||
|  |         break | ||||||
|  |     done | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | init-env-tilde-paths "$@" | ||||||
							
								
								
									
										1
									
								
								zshenv
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								zshenv
									
										
									
									
									
								
							|  | @ -30,6 +30,7 @@ autoload -Uz do_init_functions | ||||||
| typeset -a zsh_init_env_functions=( \ | typeset -a zsh_init_env_functions=( \ | ||||||
|     init-env \ |     init-env \ | ||||||
|     init-env-path \ |     init-env-path \ | ||||||
|  |     init-env-tilde-paths \ | ||||||
|     init-env-python \ |     init-env-python \ | ||||||
|     init-env-playdate \ |     init-env-playdate \ | ||||||
|     init-env-vi \ |     init-env-vi \ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue