From 889dc15a58af8cfb2a45a059acccc7c2711b6fc5 Mon Sep 17 00:00:00 2001 From: steveokard Date: Mon, 2 Dec 2019 14:46:28 -0500 Subject: [PATCH] setup for emacs daemon --- init.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/init.sh b/init.sh index 6f09744..17934db 100755 --- a/init.sh +++ b/init.sh @@ -13,6 +13,8 @@ fi #setup prezto echo "Initializing Prezto" zsh prezto.zsh +#fix permissions to avoid compaudit flag +chmod -R go-w ~/.zprezto #create symlinks using stow echo "Stowing Configs" @@ -20,21 +22,11 @@ stow tmux stow vim stow emacs stow prezto -if [ ! "~/.ssh" ] -then - mkdir ~/.ssh - stow ssh -fi +stow config chmod 0700 ~/.ssh chmod -R 0600 ~/.ssh/* cp "$HOME/stevset/mc" "$HOME/.config/mc" -#setup prezto -echo "Initializing Prezto" -zsh prezto.zsh -#fix permissions to avoid compaudit flag -chmod -R go-w ~/.zprezto - #set new shell echo "Set new shell to zsh" if [[ $SHELL != "/bin/zsh" ]] @@ -57,7 +49,6 @@ if [ ! -d ~/.emacs.d ] then ln -s "$HOME/stevset/emacs/.spacemacs" "$HOME/.spacemacs" git clone https://github.com/syl20bnr/spacemacs "$HOME/.emacs.d" - fi echo -n "Would you like to configure your git name and email? (y/n) => "; read answer