Merge branch 'master' of https://github.com/steveokard/stevset
This commit is contained in:
commit
0e5b114171
5 changed files with 29 additions and 13 deletions
12
config/.config/systemd/user/emacs.service
Normal file
12
config/.config/systemd/user/emacs.service
Normal file
|
@ -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
|
17
init.sh
17
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
|
||||
|
|
4
udeps.sh
4
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
|
||||
|
|
9
update.zsh
Executable file
9
update.zsh
Executable file
|
@ -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!"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue