fix up a few things
This commit is contained in:
35
main.sh
35
main.sh
@@ -15,8 +15,8 @@ INSTALL_USER=$(whoami)
|
||||
## DEV/PROGRAMMING ##
|
||||
## ESSENTIAL TOOLS ##
|
||||
#######################
|
||||
echo "## dev/programming & essential tools/programs" | tee todo.md -a
|
||||
echo "* install drivers & such" | tee todo.md -a
|
||||
echo "## dev/programming & essential tools/programs" | tee -a todo.md
|
||||
echo "* install drivers & such" | tee -a todo.md
|
||||
|
||||
# Install some apt packages
|
||||
sudo apt-get upgrade -y
|
||||
@@ -37,7 +37,8 @@ nvm install 24
|
||||
|
||||
# install a nerd font (provides special symbols for zsh/starship)
|
||||
sudo mkdir -p /usr/share/fonts/truetype/DejaVuSansMono/
|
||||
sudo unzip ./utils/DejaVuSansMono.zip /usr/share/fonts/truetype/DejaVuSansMono/
|
||||
sudo unzip ./utils/DejaVuSansMono.zip -d /usr/share/fonts/truetype/DejaVuSansMono/
|
||||
fc-cache -f -v
|
||||
|
||||
# zsh (better shell)
|
||||
sudo apt-get install -y zsh
|
||||
@@ -50,7 +51,7 @@ git clone https://github.com/lukechilds/zsh-nvm.git "$HOME/.nvm-zsh"
|
||||
|
||||
# starship (shell prompt)
|
||||
curl -sS https://starship.rs/install.sh | sudo sh -s -- -y
|
||||
# echo 'eval "$(starship init zsh)"' | tee "$HOME/.zshrc" -a # should already be in zshrc
|
||||
# echo 'eval "$(starship init zsh)"' | tee -a "$HOME/.zshrc" # should already be in zshrc
|
||||
mkdir -p "$HOME/.config"
|
||||
cp ./utils/starship.toml "$HOME/.config/starship.toml"
|
||||
|
||||
@@ -59,10 +60,10 @@ curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x8
|
||||
sudo rm -rf /opt/nvim-linux-x86_64
|
||||
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
|
||||
rm nvim-linux-x86_64.tar.gz
|
||||
echo 'export PATH="$PATH:/opt/nvim-linux-x86_64/bin"' | tee "$HOME/.bashrc" -a
|
||||
echo 'export PATH="$PATH:/opt/nvim-linux-x86_64/bin"' | tee -a "$HOME/.bashrc"
|
||||
|
||||
git clone https://gitea.jovan04.com/evan/neovim-config "$HOME/.config/nvim"
|
||||
echo "* install pyright language server (and any other relevant ones)" | tee todo.md -a
|
||||
echo "* install pyright language server (and any other relevant ones)" | tee -a todo.md
|
||||
|
||||
# install VS Code
|
||||
wget "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" -O "vs-code-linux-x64.deb"
|
||||
@@ -70,13 +71,13 @@ echo "code code/add-microsoft-repo boolean true" | sudo debconf-set-selections
|
||||
sudo apt-get install -y ./vs-code-linux-x64.deb
|
||||
rm ./vs-code-linux-x64.deb
|
||||
|
||||
echo "* investigate and install other IDE(s)" | tee todo.md -a
|
||||
echo "* investigate and install other IDE(s)" | tee -a todo.md
|
||||
|
||||
# Brave browser
|
||||
curl -fsS https://dl.brave.com/install.sh | sh
|
||||
|
||||
# GitHub SSH keys
|
||||
echo "* generate new SSH key and add to GitHub?" | tee todo.md -a
|
||||
echo "* generate new SSH key and add to GitHub?" | tee -a todo.md
|
||||
|
||||
# things I'd rather not install but have to
|
||||
# Discord (chat)
|
||||
@@ -87,32 +88,32 @@ rm ./discord-linux.deb
|
||||
mkdir -p "$HOME/.config/discord"
|
||||
echo '{ "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true }' | tee "$HOME/.config/discord/settings.json"
|
||||
|
||||
echo "* find discord replacement" | tee todo.md -a
|
||||
echo "* find discord replacement" | tee -a todo.md
|
||||
|
||||
# Zoom (video call)
|
||||
echo "* install Zoom (video call)" | tee todo.md -a
|
||||
echo "* install Zoom (video call)" | tee -a todo.md
|
||||
|
||||
|
||||
############################
|
||||
## WORKFLOW/SMALL TOOLS ##
|
||||
############################
|
||||
echo "## workflow helpers, small tools, and utilities" | tee todo.md -a
|
||||
echo "## workflow helpers, small tools, and utilities" | tee -a todo.md
|
||||
|
||||
# pbcopy/pbpaste (from macOS)
|
||||
sudo apt-get install -y xclip
|
||||
|
||||
printf '#!/bin/bash \nxclip -selection clipboard' | sudo tee /usr/local/bin/pbcopy
|
||||
sudo chown 1000:1000 /usr/local/bin/pbcopy
|
||||
sudo chown $INSTALL_USER:$INSTALL_USER /usr/local/bin/pbcopy
|
||||
chmod 755 /usr/local/bin/pbcopy
|
||||
|
||||
printf '#!/bin/bash \nxclip -selection clipboard -o' | sudo tee /usr/local/bin/pbpaste
|
||||
sudo chown 1000:1000 /usr/local/bin/pbpaste
|
||||
sudo chown $INSTALL_USER:$INSTALL_USER /usr/local/bin/pbpaste
|
||||
chmod 755 /usr/local/bin/pbpaste
|
||||
|
||||
# WordNet & def utility
|
||||
sudo apt-get install -y wordnet
|
||||
printf '#!/bin/bash \nwn $1 -over' | sudo tee /usr/local/bin/def
|
||||
sudo chown 1000:1000 /usr/local/bin/def
|
||||
sudo chown $INSTALL_USER:$INSTALL_USER /usr/local/bin/def
|
||||
chmod 755 /usr/local/bin/def
|
||||
|
||||
# Artha (WordNet dictionary)
|
||||
@@ -124,13 +125,13 @@ sudo apt-get install -y qpdf
|
||||
# rndrmarkdown markdown renderer
|
||||
sudo apt-get install -y pandoc
|
||||
sudo cp ./utils/rndrmarkdown /usr/local/bin/rndrmarkdown
|
||||
sudo chown 1000:1000 /usr/local/bin/rndrmarkdown
|
||||
sudo chown $INSTALL_USER:$INSTALL_USER /usr/local/bin/rndrmarkdown
|
||||
sudo chmod 755 /usr/local/bin/rndrmarkdown
|
||||
echo 'alias rmd="rndrmarkdown"' | tee "$HOME/.bashrc" -a
|
||||
echo 'alias rmd="rndrmarkdown"' | tee -a "$HOME/.bashrc"
|
||||
|
||||
# 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
|
||||
sudo chown $INSTALL_USER:$INSTALL_USER /usr/local/bin/rline
|
||||
chmod 755 /usr/local/bin/rline
|
||||
|
||||
# Calc (command-line calculator)
|
||||
|
||||
Reference in New Issue
Block a user