clean up a few things
This commit is contained in:
20
main.sh
20
main.sh
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Last updated: 7/4/2026
|
||||
# This was designed for Linux Mint 22.2; most of it should work for other distros. the desktop-environment.sh code will probably need to be different for anything that's not Cinnamon.
|
||||
# Some things here require manual install because they aren't in apt repositories, don't have another stable installation source, and I don't want to rely on a static download location.
|
||||
# These things will all be put into a TODO.md file in the current directory along with brief notes/instructions.
|
||||
# This was designed for Linux Mint 22.2; most of it should work for other distros. the desktop-environment.sh code will probably need to be different for anything that's not Cinnamon.
|
||||
# Some things here require manual install because they aren't in apt repositories, don't have another stable installation source, and I don't want to rely on a static download location.
|
||||
# These things will all be put into a TODO.md file in the current directory along with brief notes/instructions.
|
||||
|
||||
touch todo.md
|
||||
sudo mkdir -p /usr/local/bin
|
||||
@@ -22,7 +22,6 @@ echo "* install drivers & such" | tee todo.md -a
|
||||
sudo apt-get upgrade -y
|
||||
sudo apt-get install -y curl git jq build-essential unzip tree # for development
|
||||
sudo apt-get install -y ripgrep # I honestly don't remember why I installed these
|
||||
echo "* globstar?" | tee todo.md -a
|
||||
|
||||
# Install Python & uv (package/version manager)
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
@@ -41,7 +40,6 @@ sudo mkdir -p /usr/share/fonts/truetype/DejaVuSansMono/
|
||||
sudo unzip ./utils/DejaVuSansMono.zip /usr/share/fonts/truetype/DejaVuSansMono/
|
||||
|
||||
# zsh (better shell)
|
||||
echo "* add zsh and starship, etc. + nerd font" | tee todo.md -a
|
||||
sudo apt-get install -y zsh
|
||||
sudo chsh $INSTALL_USER -s /bin/zsh
|
||||
cp ./utils/dotzshrc "$HOME/.zshrc"
|
||||
@@ -52,16 +50,14 @@ curl -sS https://starship.rs/install.sh | sudo sh -s -- -y
|
||||
mkdir -p "$HOME/.config"
|
||||
cp ./utils/starship.toml "$HOME/.config/starship.toml"
|
||||
|
||||
# Neovim
|
||||
# Neovim
|
||||
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
|
||||
sudo rm -rf /opt/nvim-linux-x86_64
|
||||
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
|
||||
|
||||
echo 'export PATH="$PATH:/opt/nvim-linux-x86_64/bin"' | tee "$HOME/.bashrc" -a
|
||||
rm nvim-linux-x86_64.tar.gz
|
||||
echo 'export PATH="$PATH:/opt/nvim-linux-x86_64/bin"' | tee "$HOME/.bashrc" -a
|
||||
|
||||
git clone https://gitea.jovan04.com/evan/neovim-config "$HOME/.config/nvim"
|
||||
rm nvim-linux-x86_64.tar.gz
|
||||
|
||||
echo "* install pyright language server (and any other relevant ones)" | tee todo.md -a
|
||||
|
||||
# Other editor(s) (TBD)
|
||||
@@ -114,14 +110,12 @@ sudo apt-get install -y pandoc
|
||||
sudo cp ./utils/rndrmarkdown /usr/local/bin/rndrmarkdown
|
||||
sudo chown 1000:1000 /usr/local/bin/rndrmarkdown
|
||||
sudo chmod 755 /usr/local/bin/rndrmarkdown
|
||||
echo "* add rmd to zshrc; what is bashrc doing?" | tee todo.md -a
|
||||
echo 'alias rmd="rndrmarkdown"' | tee "$HOME/.bashrc" -a
|
||||
|
||||
# readline (for piping 1 line into wc)
|
||||
printf '#!/bin/bash \necho "$(head -n $1 $2 | tail -n 1)"' | sudo tee /usr/local/bin/rline
|
||||
sudo chown 1000:1000 /usr/local/bin/rline
|
||||
chmod 755 /usr/local/bin/rline
|
||||
echo "* verify rline formatted correctly"
|
||||
|
||||
# Calc (command-line calculator)
|
||||
sudo apt-get install -y calc
|
||||
@@ -147,7 +141,7 @@ sudo apt-get install -y btop
|
||||
##########################
|
||||
## SPECIALTY PROGRAMS ##
|
||||
##########################
|
||||
source user-programs.sh
|
||||
source ./user-programs.sh
|
||||
|
||||
|
||||
###########################
|
||||
|
||||
Reference in New Issue
Block a user