Updated .zshrc oh-my-zsh location file rewrite

This commit is contained in:
koumakpet 2020-03-16 14:16:28 +01:00
parent 865db3788c
commit f194e71dda

View file

@ -45,8 +45,10 @@ 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:
Print.commend('Changing oh-my-zsh location in .zshrc')
with open(file, 'w') as f: with open(file, 'w') as f:
f.write(filedata) f.write(filedata)