Adds open-local to siteEnv
This commit is contained in:
		
							parent
							
								
									1c9e21e1a6
								
							
						
					
					
						commit
						7e07712902
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -1,16 +1,22 @@ | |||
| #!/usr/bin/env zsh | ||||
| 
 | ||||
| 
 | ||||
| source "$HOME/.dotfiles/shells/functions" | ||||
| sitesDir="$HOME/Sites/" | ||||
| 
 | ||||
| 
 | ||||
| chosen="$(ls -d ${sitesDir}*/ | sed "s+$sitesDir++g; s/\/$//" | rofi -dmenu -i -p "Site")" | ||||
| 
 | ||||
| open="$(echo -n "Yes\nNo" | rofi -dmenu -i -p "Open the local site")" | ||||
| 
 | ||||
| siteDir="${sitesDir}${chosen}/" | ||||
| 
 | ||||
| 
 | ||||
| cd "$siteDir" | ||||
| 
 | ||||
| theme | ||||
| 
 | ||||
| 
 | ||||
| setsid "$TERMINAL" & | ||||
| setsid "$TERMINAL" & | ||||
| setsid "$TERMINAL" & | ||||
|  | @ -24,4 +30,6 @@ i3-msg "split horizontal" | |||
| 
 | ||||
| setsid "$TERMINAL" & | ||||
| 
 | ||||
| if [ "$open" = "Yes" ]; then | ||||
| 	open-local | ||||
| fi | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue