2023-01-16 11:14:42 +00:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
# Install various programs
|
|
|
|
|
|
|
|
mkdir -p "$HOME/.local/bin"
|
|
|
|
|
|
|
|
# kitty
|
2023-01-27 08:19:39 +00:00
|
|
|
command -v kitty > /dev/null || {
|
2023-01-16 11:14:42 +00:00
|
|
|
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
|
|
|
|
# Create a symbolic link to add kitty to PATH (assuming $HOME/.local/bin is in
|
|
|
|
# your system-wide PATH)
|
|
|
|
ln -s "$HOME/.local/kitty.app/bin/kitty" "$HOME/.local/bin/"
|
|
|
|
# Place the kitty.desktop file somewhere it can be found by the OS
|
|
|
|
cp "$HOME/.local/kitty.app/share/applications/kitty.desktop" "$HOME/.local/share/applications/"
|
|
|
|
# If you want to open text files and images in kitty via your file manager also add the kitty-open.desktop file
|
|
|
|
cp "$HOME/.local/kitty.app/share/applications/kitty-open.desktop" "$HOME/.local/share/applications/"
|
|
|
|
# Update the paths to the kitty and its icon in the kitty.desktop file(s)
|
2023-01-27 08:19:39 +00:00
|
|
|
sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" "$HOME/.local/share/applications/kitty.desktop"
|
|
|
|
sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" "$HOME/.local/share/applications/kitty.desktop"
|
|
|
|
}
|
2023-01-16 11:14:42 +00:00
|
|
|
|
|
|
|
# neovim
|
2023-01-27 08:19:39 +00:00
|
|
|
command -v nvim > /dev/null || {
|
2023-01-16 11:14:42 +00:00
|
|
|
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
|
|
|
chmod u+x nvim.appimage
|
|
|
|
mv nvim.appimage "$HOME/.local/bin/nvim"
|
|
|
|
ln -s "$HOME/.local/bin/nvim" "$HOME/.local/bin/vim"
|
2023-01-27 08:19:39 +00:00
|
|
|
}
|
2023-01-16 11:14:42 +00:00
|
|
|
|
|
|
|
# fzf
|
2023-01-27 08:19:39 +00:00
|
|
|
command -v fzf > /dev/null || {
|
2023-01-16 11:14:42 +00:00
|
|
|
git clone --depth 1 https://github.com/junegunn/fzf.git "$HOME/.fzf"
|
|
|
|
"$HOME/.fzf/install"
|
2023-01-27 08:19:39 +00:00
|
|
|
}
|
2023-01-16 13:31:41 +00:00
|
|
|
|
|
|
|
# pyenv
|
2023-01-27 08:19:39 +00:00
|
|
|
command -v pyenv > /dev/null || {
|
2023-01-16 13:31:41 +00:00
|
|
|
curl https://pyenv.run | bash
|
|
|
|
# Below are suggested dependencies for python
|
2023-01-27 08:19:39 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|