diff --git a/config/.config/systemd/user/emacs.service b/config/.config/systemd/user/emacs.service new file mode 100644 index 0000000..9568201 --- /dev/null +++ b/config/.config/systemd/user/emacs.service @@ -0,0 +1,12 @@ +[Unit] +Description=Emacs text editor +Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ + +[Service] +Type=forking +ExecStart=/usr/bin/emacs --daemon=instance1 +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +Restart=on-failure + +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/ssh/.ssh/config b/config/.ssh/config similarity index 100% rename from ssh/.ssh/config rename to config/.ssh/config diff --git a/init.sh b/init.sh index 6f09744..8261151 100755 --- a/init.sh +++ b/init.sh @@ -13,28 +13,22 @@ fi #setup prezto echo "Initializing Prezto" zsh prezto.zsh +#fix permissions to avoid compaudit flag +chmod -R go-w ~/.zprezto #create symlinks using stow +mkdir ~/.ssh +mkdir ~/.config/systemd/user/ echo "Stowing Configs" 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 +51,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 diff --git a/udeps.sh b/udeps.sh index 7f584ee..b9847a3 100755 --- a/udeps.sh +++ b/udeps.sh @@ -7,12 +7,14 @@ sudo apt-get -my install git \ etckeeper \ tmux \ zsh \ - vim \ + vim \ powerline\ htop \ mc \ curl \ aptitude \ + nnn \ + ack read -n1 -p $'Does this system need ssh access?\n' REPLY if [[ $REPLY == [Yy] ]]; then diff --git a/update.zsh b/update.zsh new file mode 100755 index 0000000..e762c29 --- /dev/null +++ b/update.zsh @@ -0,0 +1,9 @@ +#!/bin/zsh +rm ~/.ssh/config +stow config +sudo systemctl daemon-reload +systemctl --user enable emacs +systemctl --user start emacs +systemctl --user status emacs +echo "you should start emacs and update all the packages!" +