Commit 32cca049 authored by Mohcine Chraibi's avatar Mohcine Chraibi

backup old config

parent acb2cafc
Pipeline #5957 passed with stage
in 5 seconds
......@@ -26,12 +26,15 @@ echo "alias em=emacs25" >> ~/.bashrc
echo "alias emacs=emacs25" >> ~/.bashrc
source ~/.bashrc
# .. and for zsh
echo "alias em=emacs25" >> ~/.zshrc
echo "alias emacs=emacs25" >> ~/.zshrc
echo "alias em=\"emacs25\"" >> ~/.zshrc
echo "alias emacs=\"emacs25\"" >> ~/.zshrc
source ~/.zshrc
# download config file
if [ ! -d $HOME/.emacs.d ]
if [ -d "$HOME/.emacs.d" ]
git clone $HOME/.emacs.d
\ No newline at end of file
echo "Backup existing emacs config in $HOME/.emacs.d.back"
mv $HOME/.emacs.d $HOME/.emacs.d.back
echo "Clone emacs config.."
git clone $HOME/.emacs.d
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment