Consolidate additional software installers

This commit is contained in:
Evie Litherland-Smith 2023-01-27 22:32:30 +00:00
parent f6462e25f3
commit b36e8e255a
3 changed files with 26 additions and 33 deletions

View file

@ -1,12 +0,0 @@
#! /usr/bin/env bash
# pipx
command -v pipx > /dev/null || python3 -m pip install --user pipx
command -v pyright > /dev/null || python3 -m pipx install pyright
command -v poetry > /dev/null || python3 -m pipx install poetry
command -v black > /dev/null || python3 -m pipx install black
command -v isort > /dev/null || python3 -m pipx install isort
command -v zimports > /dev/null || python3 -m pipx install zimports
command -v pre-commit > /dev/null || python3 -m pipx install pre-commit
command -v ranger > /dev/null || python3 -m pipx install ranger-fm
command -v euporie > /dev/null || python3 -m pipx install euporie

View file

@ -1,9 +0,0 @@
#! /usr/bin/env bash
# SSH agent
ssh_agent_export="export SSH_AUTH_SOCK=\"\$XDG_RUNTIME_DIR/ssh-agent.socket\""
grep "$ssh_agent_export" "$HOME/.profile" > /dev/null || echo "$ssh_agent_export" >> "$HOME/.profile"
grep "$ssh_agent_export" "$HOME/.zprofile" > /dev/null || echo "$ssh_agent_export" >> "$HOME/.zprofile"
grep "$ssh_agent_export" "$HOME/.bash_profile" > /dev/null || echo "$ssh_agent_export" >> "$HOME/.bash_profile"
systemctl --user enable ssh-agent.service

View file

@ -3,6 +3,32 @@
mkdir -p "$HOME/.local/bin"
# python
command -v apt > /dev/null && sudo apt install python3 python3-pip python3-venv
# pyenv
command -v pyenv > /dev/null || {
curl https://pyenv.run | bash
# Below are suggested dependencies for python
command -v apt > /dev/null && {
sudo apt update
sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
}
}
# pipx
command -v pipx > /dev/null || python3 -m pip install --user pipx
command -v pyright > /dev/null || python3 -m pipx install pyright
command -v poetry > /dev/null || python3 -m pipx install poetry
command -v black > /dev/null || python3 -m pipx install black
command -v isort > /dev/null || python3 -m pipx install isort
command -v zimports > /dev/null || python3 -m pipx install zimports
command -v pre-commit > /dev/null || python3 -m pipx install pre-commit
command -v ranger > /dev/null || python3 -m pipx install ranger-fm
command -v euporie > /dev/null || python3 -m pipx install euporie
# kitty
command -v kitty > /dev/null || {
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
@ -31,15 +57,3 @@ command -v fzf > /dev/null || {
git clone --depth 1 https://github.com/junegunn/fzf.git "$HOME/.fzf"
"$HOME/.fzf/install"
}
# pyenv
command -v pyenv > /dev/null || {
curl https://pyenv.run | bash
# Below are suggested dependencies for python
command -v apt > /dev/null || {
sudo apt update
sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
}
}