Last active
June 11, 2018 04:11
-
-
Save Ladicle/101b891365f49825b42e41cc25e2cf41 to your computer and use it in GitHub Desktop.
initialization scripts for Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Author
Ladicle
commented
Jun 10, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment