dotfiles/install.sh
2023-11-04 20:04:25 +01:00

34 lines
953 B
Bash
Executable file

#!/bin/sh
# setup script for codespaces inspired by dcreager/dotfiles
set -e
if [ -z "$USER" ]; then
USER=$(id -un)
fi
echo >&2 "====================================================================="
echo >&2 " Setting up codespaces environment"
echo >&2 " USER $USER"
echo >&2 " HOME $HOME"
# Make passwordless sudo work
export SUDO_ASKPASS=/bin/true
/bin/bash ./install_tmux.sh
/bin/bash ./install_fzf.sh
/bin/bash ./install_nvim.sh
/bin/bash ./install_fish.sh
cd $HOME
rm -rf .oh-my-bash
rm -rf .oh-my-zsh
# A bit of a hack
# mv .gitconfig .gitconfig.private
git clone https://github.com/dannydannydanny/dotfiles ~/dotfiles
git clone https://github.com/dannydannydanny/methodology ~/methodology
# git clone https://github.com/dcreager/dotfiles-base .dotfiles.base
# git clone https://github.com/dcreager/dotfiles-public -b codespaces --recurse-submodules .dotfiles.public
# $HOME/.dotfiles.base/bin/dotfiles.symlink install