wip: further cleanup
This commit is contained in:
2
scripts/install.d/00-apt-pkglist
Normal file
2
scripts/install.d/00-apt-pkglist
Normal file
@@ -0,0 +1,2 @@
|
||||
bat
|
||||
ripgrep
|
||||
2
scripts/install.d/00-apt.sh
Executable file
2
scripts/install.d/00-apt.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
cat /etc/os-release
|
||||
10
scripts/install.d/02-fish.sh
Executable file
10
scripts/install.d/02-fish.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
fish --version
|
||||
|
||||
fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish"
|
||||
if ! [ -f $fisher_location ]; then
|
||||
fish -c "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
|
||||
fi
|
||||
|
||||
fish -c "fisher update"
|
||||
fish -c "fisher --version"
|
||||
9
scripts/install.d/03-ssh.sh
Executable file
9
scripts/install.d/03-ssh.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
ssh_target="$HOME/.ssh"
|
||||
ssh_key="$ssh_target/id_rsa"
|
||||
ssh_pub="$ssh_key.pub"
|
||||
if [ ! -f "$ssh_key" ]; then
|
||||
ssh-keygen -t rsa -b 4096 -f "$ssh_key"
|
||||
fi
|
||||
|
||||
cat "$ssh_pub"
|
||||
15
scripts/install.d/10-pyenv-pkglist
Normal file
15
scripts/install.d/10-pyenv-pkglist
Normal file
@@ -0,0 +1,15 @@
|
||||
build-essential
|
||||
libssl-dev
|
||||
libbz2-dev
|
||||
libreadline-dev
|
||||
libsqlite3-dev
|
||||
libxml2-dev
|
||||
libxmlsec1-dev
|
||||
llvm
|
||||
libncurses5-dev
|
||||
libncursesw5-dev
|
||||
xz-utils
|
||||
tk-dev
|
||||
libffi-dev
|
||||
liblzma-dev
|
||||
zlib1g-dev
|
||||
17
scripts/install.d/10-pyenv.sh
Executable file
17
scripts/install.d/10-pyenv.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
if ! bin_in_path "pyenv"; then
|
||||
# see https://github.com/pyenv/pyenv/wiki/common-build-problems
|
||||
pyenv_list_file="$INSTALL_DIR/10-pyenv-pkglist"
|
||||
install_file "$pyenv_list_file"
|
||||
|
||||
# see https://github.com/pyenv/pyenv-installer
|
||||
download_run "https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer" \
|
||||
bash
|
||||
fi
|
||||
|
||||
eval "$(pyenv init -)"
|
||||
eval "$(pyenv virtualenv-init -)"
|
||||
|
||||
pyenv update
|
||||
|
||||
pyenv --version
|
||||
16
scripts/install.d/11-python.sh
Executable file
16
scripts/install.d/11-python.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
|
||||
|
||||
if ! bin_in_path "pip3"; then
|
||||
pyenv install 3.9.0
|
||||
pyenv global 3.9.0
|
||||
fi
|
||||
|
||||
pip install --upgrade pip
|
||||
pip3 install --upgrade pip
|
||||
python3 --version
|
||||
pip3 --version
|
||||
|
||||
for dep in `jq -r ".pip_dependencies[]" $CONFIG`; do
|
||||
pip3 install --upgrade $dep
|
||||
done
|
||||
2
scripts/install.d/12-poetry.sh
Normal file
2
scripts/install.d/12-poetry.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
poetry --version
|
||||
14
scripts/install.d/13-nvm.sh
Executable file
14
scripts/install.d/13-nvm.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
nvm_version="v0.38.0"
|
||||
if ! bin_in_path "nvm"; then
|
||||
download_run "https://raw.githubusercontent.com/nvm-sh/nvm/${nvm_version}/install.sh" \
|
||||
"bash"
|
||||
fi
|
||||
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
nvm --version
|
||||
nvm install node
|
||||
nvm use node
|
||||
|
||||
node --version
|
||||
7
scripts/install.d/14-yarn.sh
Executable file
7
scripts/install.d/14-yarn.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
yarn --version
|
||||
|
||||
for dep in `jq -r ".node_dependencies[]" $CONFIG`; do
|
||||
yarn global add $dep
|
||||
yarn global upgrade $dep
|
||||
done
|
||||
2
scripts/install.d/15-java.sh
Executable file
2
scripts/install.d/15-java.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
java --version
|
||||
24
scripts/install.d/16-vim.sh
Executable file
24
scripts/install.d/16-vim.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Install neovim from unstable debian repo
|
||||
echo "deb http://deb.debian.org/debian unstable main" \
|
||||
| sudo tee /etc/apt/sources.list.d/unstable.list
|
||||
echo "Package: neovim
|
||||
Pin: release a=unstable
|
||||
Pin-Priority: 900" \
|
||||
| sudo tee /etc/apt/preferences.d/neovim
|
||||
update
|
||||
install neovim
|
||||
|
||||
mkdir -p "$XDG_DATA_HOME/nvim/backup"
|
||||
plug_dir="$XDG_DATA_HOME/nvim/site/autoload"
|
||||
mkdir -p "$plug_dir"
|
||||
plug_target="$plug_dir/plug.vim"
|
||||
if [ ! -f $plug_target ]; then
|
||||
download_file \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \
|
||||
"$plug_target"
|
||||
fi
|
||||
|
||||
nvim --headless +UpdateRemotePlugins +PlugClean! +PlugInstall +PlugUpgrade +PlugUpdate +qall
|
||||
nvim --version
|
||||
11
scripts/install.d/30-docker.sh
Executable file
11
scripts/install.d/30-docker.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
docker --version
|
||||
|
||||
readonly docker_group="docker"
|
||||
if ! grep -q "$docker_group" /etc/group; then
|
||||
sudo groupadd "$docker_group"
|
||||
fi
|
||||
|
||||
if ! groups "$USER" | grep -q "\b$docker_group\b"; then
|
||||
sudo usermod -aG docker "$USER"
|
||||
fi
|
||||
2
scripts/install.d/31-gcloud.sh
Executable file
2
scripts/install.d/31-gcloud.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
gcloud --version
|
||||
2
scripts/install.d/32-firebase.sh
Executable file
2
scripts/install.d/32-firebase.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
firebase --version
|
||||
2
scripts/install.d/33-aws.sh
Executable file
2
scripts/install.d/33-aws.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
aws --version
|
||||
2
scripts/install.d/34-terraform.sh
Executable file
2
scripts/install.d/34-terraform.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
terraform --version
|
||||
2
scripts/install.d/98-apt-clean.sh
Executable file
2
scripts/install.d/98-apt-clean.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
clean
|
||||
2
scripts/install.d/99-screenfetch.sh
Executable file
2
scripts/install.d/99-screenfetch.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
screenfetch
|
||||
Reference in New Issue
Block a user