update
This commit is contained in:
		
							parent
							
								
									90a1db596e
								
							
						
					
					
						commit
						bee848ee73
					
				
							
								
								
									
										16
									
								
								bashrc
								
								
								
								
							
							
						
						
									
										16
									
								
								bashrc
								
								
								
								
							|  | @ -151,7 +151,7 @@ if [ $_updates_available -gt 0 ] ; then | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| echo "" | echo "" | ||||||
| echo -e "Remember \"\033[1;34mTODO.md\033[0m\" files have content automatically displayed." | echo -e "Remember \"\033[1;34mTODO.md\033[0m\" and \"\033[1;34mautonote.md\033[0m\"  files have content automatically displayed." | ||||||
| echo "" | echo "" | ||||||
| 
 | 
 | ||||||
| . "$HOME/.config/bash/cheat.bash" | . "$HOME/.config/bash/cheat.bash" | ||||||
|  | @ -175,10 +175,22 @@ if [ -f "TODO.md" ]; then | ||||||
| 	echo | 	echo | ||||||
| fi | fi | ||||||
| } | } | ||||||
| # Hook to execute check_todo when changing directories | # Function to check for .autonote.md and echo its contents | ||||||
|  | function check_autonote() { | ||||||
|  | if [ -f ".autonote.md" ]; then | ||||||
|  | 	echo | ||||||
|  | 	echo -e "\e[91autonote.md\e[0m" | ||||||
|  | 	echo "---------------------------" | ||||||
|  | 	mdcat autonote.md | ||||||
|  | 	echo "---------------------------" | ||||||
|  | 	echo | ||||||
|  | fi | ||||||
|  | } | ||||||
|  | # Hook to execute check_todo, check_autonote when changing directories | ||||||
| cd() { | cd() { | ||||||
|     builtin cd "$@" |     builtin cd "$@" | ||||||
|     check_todo |     check_todo | ||||||
|  | 		check_autonote | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| random-bg() { | random-bg() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue