mirror of
				https://github.com/Stunkymonkey/dotfiles.git
				synced 2025-10-28 17:02:11 +01:00 
			
		
		
		
	initial commit
This commit is contained in:
		
						commit
						86a1da2632
					
				
					 35 changed files with 1162 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								shell/gitrepo-commited.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								shell/gitrepo-commited.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| case "$-" in | ||||
| 	*i*) | ||||
| 		# This shell is interactive, if not ignore this part | ||||
| 		# If printing this in non-interactive shells, it'll may prevent scp to work | ||||
| 		cfgrepo=`readlink ~/.profile.d/10-gitrepo-commited.sh` | ||||
| 		repo=`dirname $cfgrepo` | ||||
| 		changes=`git -C $repo status --porcelain | wc -l` | ||||
| 
 | ||||
| 		if [ $changes -gt 0 ]; then | ||||
| 			echo -e '\e[01;31m'                            >&2 | ||||
| 			echo -e '####################################' >&2 | ||||
| 			echo -e '# GIT-config-Repo is not commited! #' >&2 | ||||
| 			echo -e '####################################' >&2 | ||||
| 			echo -e '\e[0m'                                >&2 | ||||
| 		fi | ||||
| 		;; | ||||
| esac | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Felix Buehler
						Felix Buehler