From 4dfe35579ac34211b8ed0b3dcfc5ac9b320c49a8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 18 Dec 2022 18:30:04 +0900 Subject: misc: remove ~/.config/emacs --- sync.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'sync.sh') diff --git a/sync.sh b/sync.sh index 9a487aa..690fd9b 100755 --- a/sync.sh +++ b/sync.sh @@ -1,6 +1,18 @@ #!/bin/bash -# Neovim {{{1 +# Remove old settings. {{{1 + +# Emacs {{{2 + +emacs_conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}"/emacs +if [ -d "$emacs_conf_dir" ]; then + echo "emacs: remove $emacs_conf_dir" + rm -rf "$emacs_conf_dir" +fi + +# Synchronize current settings. {{{1 + +# Neovim {{{2 if type nvim >/dev/null 2>&1; then packer_nvim_dir="${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/packer/opt/packer.nvim nvim_conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}"/nvim @@ -12,11 +24,12 @@ if type nvim >/dev/null 2>&1; then fi fi -# Bat {{{1 +# Bat {{{2 if type bat >/dev/null 2>&1; then echo "bat: rebuild cache" bat cache --clear && bat cache --build fi +# }}} # }}} # vim: foldmethod=marker -- cgit v1.2.3-70-g09d2