Standardized rebuild/reload conventions a bit.
This commit is contained in:
		
							parent
							
								
									753f6ae659
								
							
						
					
					
						commit
						89b9edeff7
					
				
					 2 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
					@ -75,6 +75,14 @@ function __rebuild_bashrcd() {
 | 
				
			||||||
		source \""""$(readlink -f "$COMPILED_SRC")"""\"
 | 
							source \""""$(readlink -f "$COMPILED_SRC")"""\"
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function __bashrc_reload() {
 | 
				
			||||||
 | 
						export BASHRC_RELOAD_COUNTER=$((${BASHRC_RELOAD_COUNTER:-0}+1))
 | 
				
			||||||
 | 
						if [[ $BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: $BASHRC_RELOAD_COUNTER"; fi
 | 
				
			||||||
 | 
						source ~/.bashrc
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					alias __bashrc_reload='-reload-bashrc'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
""" >> $COMPILED_SRC
 | 
					""" >> $COMPILED_SRC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__builder_postbuild_exec
 | 
					__builder_postbuild_exec
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,7 +47,7 @@ if ! which -s python && which -s python3; then
 | 
				
			||||||
	alias python=python3
 | 
						alias python=python3
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function -restart_plasma() {
 | 
					function -restart-plasma() {
 | 
				
			||||||
	(
 | 
						(
 | 
				
			||||||
		set -ex
 | 
							set -ex
 | 
				
			||||||
		plasmashell --replace &>/dev/null &
 | 
							plasmashell --replace &>/dev/null &
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue