mirror of https://github.com/JanJastrow/.dotfiles
Optionally load files from second/private repo
parent
4a76889d46
commit
346fccde9e
13
install.sh
13
install.sh
|
@ -8,9 +8,16 @@ rm ~/.zshrc
|
|||
ln -s ~/.dotfiles/zshrc ~/.zshrc
|
||||
touch ~/.dotfiles/zsh/device-specific
|
||||
sudo chsh -s $(which zsh) $USER
|
||||
echo "Include ~/.dotfiles/ssh/hosts" >> ~/.ssh/config
|
||||
chmod 600 ~/.dotfiles/ssh/hosts
|
||||
chmod 600 ~/.ssh/config
|
||||
|
||||
# If private repo is available, add ssh config + hosts
|
||||
if [[ -d $HOME/.jan ]]; then
|
||||
echo "Include ~/.jan/ssh_hosts" >> ~/.ssh/hosts
|
||||
echo "Include ~/.dotfiles/ssh/settings" >> ~/.ssh/config
|
||||
chmod 600 ~/.ssh/config
|
||||
chmod 600 ~/.jan/ssh_hosts
|
||||
fi
|
||||
|
||||
# Remove old bash files
|
||||
rm ~/.bashrc
|
||||
rm ~/.bash_logout
|
||||
rm ~/.bash_history
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# Add the following to ~/.ssh/config
|
||||
# Include ~/.dotfiles/ssh/hosts
|
||||
|
Loading…
Reference in New Issue