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
|
#setup prezto
|
||||||
echo "Initializing Prezto"
|
echo "Initializing Prezto"
|
||||||
zsh prezto.zsh
|
zsh prezto.zsh
|
||||||
|
#fix permissions to avoid compaudit flag
|
||||||
|
chmod -R go-w ~/.zprezto
|
||||||
|
|
||||||
#create symlinks using stow
|
#create symlinks using stow
|
||||||
|
mkdir ~/.ssh
|
||||||
|
mkdir ~/.config/systemd/user/
|
||||||
echo "Stowing Configs"
|
echo "Stowing Configs"
|
||||||
stow tmux
|
stow tmux
|
||||||
stow vim
|
stow vim
|
||||||
stow emacs
|
stow emacs
|
||||||
stow prezto
|
stow prezto
|
||||||
if [ ! "~/.ssh" ]
|
stow config
|
||||||
then
|
|
||||||
mkdir ~/.ssh
|
|
||||||
stow ssh
|
|
||||||
fi
|
|
||||||
chmod 0700 ~/.ssh
|
chmod 0700 ~/.ssh
|
||||||
chmod -R 0600 ~/.ssh/*
|
chmod -R 0600 ~/.ssh/*
|
||||||
cp "$HOME/stevset/mc" "$HOME/.config/mc"
|
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
|
#set new shell
|
||||||
echo "Set new shell to zsh"
|
echo "Set new shell to zsh"
|
||||||
if [[ $SHELL != "/bin/zsh" ]]
|
if [[ $SHELL != "/bin/zsh" ]]
|
||||||
|
@ -57,7 +51,6 @@ if [ ! -d ~/.emacs.d ]
|
||||||
then
|
then
|
||||||
ln -s "$HOME/stevset/emacs/.spacemacs" "$HOME/.spacemacs"
|
ln -s "$HOME/stevset/emacs/.spacemacs" "$HOME/.spacemacs"
|
||||||
git clone https://github.com/syl20bnr/spacemacs "$HOME/.emacs.d"
|
git clone https://github.com/syl20bnr/spacemacs "$HOME/.emacs.d"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
|
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 \
|
etckeeper \
|
||||||
tmux \
|
tmux \
|
||||||
zsh \
|
zsh \
|
||||||
vim \
|
vim \
|
||||||
powerline\
|
powerline\
|
||||||
htop \
|
htop \
|
||||||
mc \
|
mc \
|
||||||
curl \
|
curl \
|
||||||
aptitude \
|
aptitude \
|
||||||
|
nnn \
|
||||||
|
ack
|
||||||
|
|
||||||
read -n1 -p $'Does this system need ssh access?\n' REPLY
|
read -n1 -p $'Does this system need ssh access?\n' REPLY
|
||||||
if [[ $REPLY == [Yy] ]]; then
|
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