mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-11-04 09:16:36 +00:00 
			
		
		
		
	Updated .zshrc oh-my-zsh location file rewrite
This commit is contained in:
		
							parent
							
								
									865db3788c
								
							
						
					
					
						commit
						f194e71dda
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
					@ -45,10 +45,12 @@ def personalized_changes(file):
 | 
				
			||||||
        filedata = None
 | 
					        filedata = None
 | 
				
			||||||
        with open(file, 'r') as f:
 | 
					        with open(file, 'r') as f:
 | 
				
			||||||
            filedata = f.read()
 | 
					            filedata = f.read()
 | 
				
			||||||
 | 
					        filedata_old = filedata
 | 
				
			||||||
        filedata = filedata.replace('"$HOME/.config/oh-my-zsh"', f'"{oh_my_zsh_path}"')
 | 
					        filedata = filedata.replace('"$HOME/.config/oh-my-zsh"', f'"{oh_my_zsh_path}"')
 | 
				
			||||||
        Print.err('Rewriting')
 | 
					        if filedata_old != filedata:
 | 
				
			||||||
        with open(file, 'w') as f:
 | 
					            Print.commend('Changing oh-my-zsh location in .zshrc')
 | 
				
			||||||
            f.write(filedata)
 | 
					            with open(file, 'w') as f:
 | 
				
			||||||
 | 
					                f.write(filedata)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def init(symlink):
 | 
					def init(symlink):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue