Skip to content

Instantly share code, notes, and snippets.

@Ladicle
Last active June 11, 2018 04:11
Show Gist options
  • Save Ladicle/101b891365f49825b42e41cc25e2cf41 to your computer and use it in GitHub Desktop.
Save Ladicle/101b891365f49825b42e41cc25e2cf41 to your computer and use it in GitHub Desktop.
initialization scripts for Ubuntu
#!/bin/bash
set -exu
# install dependencies in apt
sudo apt update && sudo apt upgrade
sudo apt install \
git \
emacs \
fish \
golang \
tmux \
tig \
tree \
ctags \
jq \
silversearcher-ag \
curl
# install Rust
curl https://sh.rustup.rs -sSf | sh
# setup spacemacs
# TODO: update & remove & setup snippets
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
# setup fisher
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher
fish -c "fisher install z"
# setup dotfiles
git clone <my secret dotfiles>
cd <dotdir> && ./install.sh
# install dependencies in github
echo "input your GOPATH: "; read ans
export GOPATH $ans
go get -u github.com/Ladicle/git-prompt
go get -u github.com/junegunn/fzf
go get -u github.com/motemen/ghq
go get -u golang.org/x/tools/...
go get -u github.com/rogpeppe/godef
go get -u github.com/nsf/gocode
go get -u github.com/golang/lint/golint
go get -u github.com/kisielk/errcheck
go get -u github.com/juntaki/gogtags
go get -u github.com/derekparker/delve/cmd/dlv
# install nerd font
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts
wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/FiraCode/Bold/complete/Fura%20Code%20Bold%20Nerd%20Font%20Complete.otf
wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/FiraCode/Light/complete/Fura%20Code%20Light%20Nerd%20Font%20Complete.otf
wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/FiraCode/Medium/complete/Fura%20Code%20Medium%20Nerd%20Font%20Complete.otf
wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/FiraCode/Regular/complete/Fura%20Code%20Regular%20Nerd%20Font%20Complete.otf
wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/FiraCode/Retina/complete/Fura%20Code%20Retina%20Nerd%20Font%20Complete.otf
sudo fc-cache -fv
@Ladicle
Copy link
Author

Ladicle commented Jun 10, 2018

wget -O- <raw url of this scripts> | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment