Skip to content

Instantly share code, notes, and snippets.

@WaylonWalker
Last active August 11, 2020 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WaylonWalker/0532e9e9f41432d9a375490235286cd6 to your computer and use it in GitHub Desktop.
Save WaylonWalker/0532e9e9f41432d9a375490235286cd6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# curl -s -L https://gist.githubusercontent.com/WaylonWalker/0532e9e9f41432d9a375490235286cd6/raw/4bc499518889aa9ad8ee0e410bc44f96a860f1e0/KedroBasics_startup.sh | bash
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
apt install zsh -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
mkdir -p ~/starship
wget https://starship.rs/install.sh -O ~/starship/install.sh
bash ~/starship/install.sh -y
rm -rf ~/starship
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
VSCODE_SETTINGS=.vscode-server/data/Machine/settings.json
echo "{" > $VSCODE_SETTINGS
echo ' "terminal.integrated.shell.linux": "/bin/zsh"' >> $VSCODE_SETTINGS
echo "}" >> $VSCODE_SETTINGS
# python
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh
source ~/.bashrc
# pipx
pip install pipx
echo 'export PATH="$PATH:/root/.local/bin"' >> ~/.bashrc
echo 'export PATH="$PATH:/root/.local/bin"' >> ~/.zshrc
pipx install black
pipx install flake8
pipx install shell-functools
# fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --all
# forgit
git clone https://github.com/wfxr/forgit ~/.forgit
echo ". ~/.forgit/forgit.plugin.zsh" >> ~/.zshrc
# ag
apt install silversearcher-ag -y
# bat
apt install bat -y && echo "alias cat=batcat" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment