45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# start
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
# set up
|
|
ln -s /mnt/c/git ~/git
|
|
|
|
|
|
# # # shell
|
|
|
|
# apt
|
|
sudo apt-get update
|
|
sudo apt-get upgrade -y
|
|
|
|
# brew
|
|
yes '' | sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
|
|
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >>~/.profile
|
|
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
|
sudo apt-get install build-essential
|
|
brew install gcc
|
|
|
|
# zsh
|
|
sudo apt install zsh -y
|
|
sudo apt-get install powerline fonts-powerline -y
|
|
|
|
# oh my zsh
|
|
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
|
|
|
# highlighting
|
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
|
|
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
|
|
|
|
# spaceship
|
|
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
|
|
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
|
|
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="spaceship"/g' ~/.zshrc
|
|
|
|
|
|
# # # dev
|
|
brew install hugo
|
|
|
|
# cleanup
|
|
sudo apt autoremove -y
|
|
export DEBIAN_FRONTEND=readline
|