♻️ add install script for codespaces
This commit is contained in:
parent
8fa3df2209
commit
44da1c8b92
1 changed files with 44 additions and 0 deletions
44
install.sh
Normal file
44
install.sh
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#!/bin/sh
|
||||
# setup script for codespaces inspired by dcreager/dotfiles
|
||||
|
||||
if [ -z "$USER" ]; then
|
||||
USER=$(id -un)
|
||||
fi
|
||||
|
||||
echo >&2 "====================================================================="
|
||||
echo >&2 " Setting up codespaces environment"
|
||||
echo >&2 ""
|
||||
echo >&2 " USER $USER"
|
||||
echo >&2 " HOME $HOME"
|
||||
echo >&2 "====================================================================="
|
||||
|
||||
cd $HOME
|
||||
|
||||
# Make passwordless sudo work
|
||||
export SUDO_ASKPASS=/bin/true
|
||||
|
||||
# No thank you
|
||||
rm -rf .oh-my-bash
|
||||
rm -rf .oh-my-zsh
|
||||
rm .zshrc
|
||||
|
||||
# A bit of a hack
|
||||
# mv .gitconfig .gitconfig.private
|
||||
|
||||
# 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
|
||||
|
||||
# I'd like to use fish, please
|
||||
sudo apt-get install -y fish
|
||||
sudo chsh -s /usr/bin/fish $USER
|
||||
|
||||
# Install fzf
|
||||
FZF_VERSION=0.40.0
|
||||
curl -L https://github.com/junegunn/fzf/releases/download/${FZF_VERSION}/fzf-${FZF_VERSION}-linux_amd64.tar.gz | tar xzC $HOME/bin
|
||||
|
||||
# Install neovim
|
||||
NVIM_VERSION=0.7.2
|
||||
sudo apt-get install -y libfuse2
|
||||
curl -L -o $HOME/bin/nvim https://github.com/neovim/neovim/releases/download/v${NVIM_VERSION}/nvim.appimage
|
||||
chmod a+x $HOME/bin/nvim
|
||||
Loading…
Add table
Add a link
Reference in a new issue