diff options
-rw-r--r-- | profile_vm_provisioning | 10 | ||||
-rwxr-xr-x | provision_openbsd.ksh | 60 |
2 files changed, 70 insertions, 0 deletions
diff --git a/profile_vm_provisioning b/profile_vm_provisioning new file mode 100644 index 0000000..1b8fc5b --- /dev/null +++ b/profile_vm_provisioning @@ -0,0 +1,10 @@ +# $OpenBSD: dot.profile,v 1.7 2020/01/24 02:09:51 okan Exp $ +# +# sh/ksh initialization + +eval `ssh-agent -s` + + +PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games +export ENV=~/.kshrc +export PATH HOME TERM diff --git a/provision_openbsd.ksh b/provision_openbsd.ksh new file mode 100755 index 0000000..6d15795 --- /dev/null +++ b/provision_openbsd.ksh @@ -0,0 +1,60 @@ +#!/bin/ksh + +# Send in id_rsa.pub +# send in /etc/doas.conf + +echo "Provisioning this machine for basic development work..." +ssh-add -v +#pkg_add vim git the_silver_searcher universal-ctags zip + +echo -n "Creating necessary directories..." +mkdir -p ~/code/python +mkdir -p ~/.config/ +echo "ok" + +echo -n "Fetching dotfiles..." +if [ ! -d ~/openbsddotfiles ]; then + git clone git@github.com:yulqen/openbsddotfiles.git ~/openbsddotfiles 2>&1 > /dev/null + echo "ok" +else + echo "dotfiles directory already exists." +fi + +echo -n "Fetching dbasik..." +if [ ! -d ~/code/python/dbasik ]; then + git clone git@github.com:yulqen/dbasik.git ~/code/python/dbasik 2>&1 > /dev/null + echo "ok" +else + echo "dbasik directory already exists." +fi + +echo -n "Fetching datamaps..." +if [ ! -d ~/code/python/datamaps ]; then + git clone git@github.com:yulqen/datamaps.git ~/code/python/datamaps 2>&1 > /dev/null + echo "ok" +else + echo "datamaps directory already exists." +fi + +echo -n "Fetching bcompiler-engine..." +if [ ! -d ~/code/python/bcompiler-engine ]; then + git clone git@github.com:yulqen/bcompiler-engine.git ~/code/python/bcompiler-engine 2>&1 > /dev/null + echo "ok" +else + echo "bcompiler-engine directory already exists." +fi + +echo -n "Creating symlinks..." +ln -sf openbsddotfiles/kshrc_vm_provision .kshrc +ln -sf openbsddotfiles/ksh_aliases .ksh_aliases +ln -sf openbsddotfiles/profile .profile +ln -sf openbsddotfiles/tmux.conf .tmux.conf +ln -sf openbsddotfiles/vim .vim +ln -sf openbsddotfiles/gitconfig .gitconfig +ln -sf openbsddotfiles/gitignore_global .gitignore_global +ln -sf openbsddotfiles/pdbrc .pdbrc +ln -sf openbsddotfiles/pdbrc.py .pdbrc.py +ln -sf openbsddotfiles/flake8 /home/lemon/.config/.flake8 +echo "ok" + + |