dotfiles/bin/link_emacs_config_to_root.sh
2022-03-18 15:00:33 +01:00

12 lines
474 B
Bash
Executable File

#!/bin/sh
sudo ln -sfv ~/.emacs.d/early-init.el ~root/.emacs.d/early-init.el
sudo ln -sfv ~/.emacs.d/init.el ~root/.emacs.d/init.el
sudo rm -rf ~root/.emacs.d/init.d
sudo ln -sfv ~/.emacs.d/init.d ~root/.emacs.d/init.d
sudo mkdir -pv ~root/.emacs.d/server
sudo ln -sfv ~/.emacs.d/server/server ~root/.emacs.d/server/server
sudo mkdir -pv ~root/.emacs.d/straight
sudo rm -rf ~root/.emacs.d/straight/repos
sudo ln -sfv ~/.emacs.d/straight/repos ~root/.emacs.d/straight/repos