This commit renames the roots directory to states because it contains salt states.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			503 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			503 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| function devenv
 | |
| {
 | |
|     . $HOME/gvasettings.sh
 | |
|     . $HOME/gva-venv/bin/activate
 | |
|     cd /vagrant/gnuviechadmin
 | |
| }
 | |
| 
 | |
| function testenv
 | |
| {
 | |
|     devenv
 | |
|     export DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE%%.local}.test
 | |
| }
 | |
| 
 | |
| function settitle
 | |
| {
 | |
|     if [ -n "$STY" ] ; then      # We are in a screen session
 | |
|         echo "Setting screen titles to $@"
 | |
|         printf "\033k%s\033\\" "$@"
 | |
|         screen -X eval "at \\# title $@" "shelltitle $@"
 | |
|     else
 | |
|         printf "\033]0;%s\007" "$@"
 | |
|     fi
 | |
| }
 |