Skip to content

Instantly share code, notes, and snippets.

@nakatanakatana
Last active February 18, 2020 11:26
Show Gist options
  • Save nakatanakatana/a11fce6b1e1b6ec53df0d1decabdf5eb to your computer and use it in GitHub Desktop.
Save nakatanakatana/a11fce6b1e1b6ec53df0d1decabdf5eb to your computer and use it in GitHub Desktop.
initialize
sudo apt update
sudo apt upgrade -y
# install homebrew
function install_brew () {
sudo apt install -y build-essential curl file git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
export PATH=$PATH:~/.linuxbrew/bin
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
}
# npm packages
function install_npm () {
nvm install 12
nvm use 12
}
function npm_package () {
npm install -g neovim firebase-tools typescript-language-server vue-language-server dockerfile-language-server-nodejs
}
# main
which brew > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "already installed brew"
else
install_brew
fi
sudo add-apt-repository ppa:mmstick76/alacritty
sudo apt install -y alacritty ibus-mozc exfat-fuse exfat-utils unrar unar \
freecad meshlab \
python-pip python3-pip
brew install git nvm go rust \
neovim screen ghq peco tmux tmux-xpanes
brew tap homebrew/cask-fonts
brew
sudo pip install virtualenvwrapper
pip install pynvim
pip3 install pynvim neovim-remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment