mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-16 16:04:51 +01:00
26 lines
507 B
Bash
Executable File
26 lines
507 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -x `which zsh` ]; then
|
|
exit
|
|
fi
|
|
|
|
rm ~/.zshrc
|
|
ln -s ~/.dotfiles/zshrc ~/.zshrc
|
|
touch ~/.dotfiles/zsh/device-specific
|
|
sudo chsh -s $(which zsh) $USER
|
|
|
|
# If private repo is available, add ssh config + hosts
|
|
if [[ -d $HOME/.jan ]]; then
|
|
echo "Include ~/.dotfiles/ssh/settings" >> ~/.ssh/config
|
|
echo "Include ~/.jan/ssh_hosts" >> ~/.ssh/config
|
|
chmod 600 ~/.ssh/config
|
|
chmod 600 ~/.jan/ssh_hosts
|
|
fi
|
|
|
|
# Remove old bash files
|
|
rm ~/.bashrc
|
|
rm ~/.bash_logout
|
|
rm ~/.bash_history
|
|
|
|
zsh
|