40 lines
988 B
Bash
40 lines
988 B
Bash
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
env
|
|
|
|
TD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
|
|
|
|
U="$USERNAME_TO_ADD"
|
|
|
|
# original home
|
|
OH="/hosthome"
|
|
# link ~/.home to original home
|
|
ln -s "/hosthome" $HOME/.home
|
|
|
|
# oh-my-zsh
|
|
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh > /tmp/installomz.sh
|
|
export ZSH="$HOME/.zsh"
|
|
bash /tmp/installomz.sh --unattended --keep-zshrc
|
|
|
|
# vim-plug
|
|
# this should happen from vimrc
|
|
#curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
|
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
|
|
# link in ssh key from original home
|
|
mkdir -p ~/.ssh
|
|
ln -s ~/.home/.ssh/id_rsa ~/.ssh/id_rsa
|
|
ln -s ~/.home/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub
|
|
|
|
# install pyenv
|
|
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
|
# FIXME install a python version
|
|
|
|
git clone https://github.com/nvm-sh/nvm.git ~/.nvm
|
|
# FIXME install an nvm version
|
|
|
|
# move this to runtime FIXME
|
|
#DEVDIR="$( cd ~/.home/dev >/dev/null 2>&1 && pwd -P)"
|