22 lines
		
	
	
	
		
			403 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			403 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/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
 | 
						|
 | 
						|
    export df=~/.dotfiles
 | 
						|
}
 | 
						|
 | 
						|
init-env-tilde-paths "$@"
 |