[zsh] Move setting up tilde paths to their own init function
This commit is contained in:
		
							parent
							
								
									44302e10ed
								
							
						
					
					
						commit
						db8e255a8f
					
				
					 3 changed files with 13 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,4 @@
 | 
			
		|||
#!/usr/bin/env zsh
 | 
			
		||||
# vim:ft=zsh:
 | 
			
		||||
# Eryn Wells <eryn@erynwells.me>
 | 
			
		||||
 | 
			
		||||
autoload append_to_path
 | 
			
		||||
| 
						 | 
				
			
			@ -9,7 +8,6 @@ export OSBUILD=`sysctl -n kern.osversion`
 | 
			
		|||
export OSVERSION=`sysctl -n kern.osproductversion`
 | 
			
		||||
export HWMODEL=`sysctl -n hw.model`
 | 
			
		||||
 | 
			
		||||
export c="$HOME/Code"
 | 
			
		||||
export dd="$HOME/Library/Developer/Xcode/DerivedData"
 | 
			
		||||
 | 
			
		||||
local pythonRoot
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										11
									
								
								zsh/func/init_rc_tilde_paths
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								zsh/func/init_rc_tilde_paths
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
#!/usr/bin/env zsh
 | 
			
		||||
# Eryn Wells <eryn@erynwells.me>
 | 
			
		||||
 | 
			
		||||
for x in "$HOME/Code" "$HOME/Documents/Code"; do
 | 
			
		||||
    if [[ ! -d "$x" ]]; then
 | 
			
		||||
        continue
 | 
			
		||||
    fi
 | 
			
		||||
    export c="$x"
 | 
			
		||||
    break
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue