2022-02-10 20:11:56 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-02-10 21:14:50 +01:00
|
|
|
if [ ! -x `which zsh` ]; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2022-02-10 20:11:56 +01:00
|
|
|
rm ~/.zshrc
|
|
|
|
ln -s ~/.dotfiles/zshrc ~/.zshrc
|
2022-04-19 15:34:47 +02:00
|
|
|
ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
|
2022-09-02 20:00:21 +02:00
|
|
|
mkdir ~/.dotfiles/this-machine
|
2022-09-02 19:54:52 +02:00
|
|
|
touch ~/.dotfiles/this-machine/zsh
|
|
|
|
touch ~/.dotfiles/this-machine/tmux.conf
|
2022-02-10 20:11:56 +01:00
|
|
|
sudo chsh -s $(which zsh) $USER
|
2022-02-10 21:15:29 +01:00
|
|
|
|
|
|
|
# If private repo is available, add ssh config + hosts
|
2022-02-13 01:12:33 +01:00
|
|
|
if [ -d $HOME/.jan ]; then
|
2022-02-10 21:15:29 +01:00
|
|
|
echo "Include ~/.dotfiles/ssh/settings" >> ~/.ssh/config
|
2022-02-10 21:18:09 +01:00
|
|
|
echo "Include ~/.jan/ssh_hosts" >> ~/.ssh/config
|
2022-02-10 21:15:29 +01:00
|
|
|
chmod 600 ~/.ssh/config
|
|
|
|
chmod 600 ~/.jan/ssh_hosts
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove old bash files
|
2022-02-10 20:11:56 +01:00
|
|
|
rm ~/.bashrc
|
|
|
|
rm ~/.bash_logout
|
|
|
|
rm ~/.bash_history
|
2022-02-10 21:14:50 +01:00
|
|
|
|
2022-02-10 20:11:56 +01:00
|
|
|
zsh
|