Last active
June 14, 2023 22:08
-
-
Save nf/d89c8ba5db9bbf23da18 to your computer and use it in GitHub Desktop.
Script for setting up Debian Jessie VM with my development environment
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 -e | |
echo ' | |
PATH=$HOME/go/bin:$PATH | |
export GOPATH=$HOME | |
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
export EDITOR=vim | |
' >> ~/.profile | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends mosh build-essential mercurial vim screen git | |
curl https://storage.googleapis.com/golang/go1.4.1.linux-amd64.tar.gz | tar xz | |
mv go go1.4 | |
git clone https://go.googlesource.com/go | |
(cd go/src && ./make.bash) | |
GOPATH=$HOME ~/go/bin/go get golang.org/x/tools/cmd/goimports golang.org/x/review/git-codereview | |
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go | |
echo ' | |
execute pathogen#infect() | |
let g:go_fmt_command = "goimports" | |
set autoindent | |
filetype plugin indent on | |
set dir=/tmp | |
set backupdir=/tmp | |
' > ~/.vimrc | |
echo ' | |
[alias] | |
change = codereview change | |
gofmt = codereview gofmt | |
mail = codereview mail | |
pending = codereview pending | |
rebase-work = codereview rebase-work | |
submit = codereview submit | |
sync = codereview sync | |
[user] | |
email = [email protected] | |
name = Andrew Gerrand | |
' > ~/.gitconfig |
Hi Andrew,
Happy to see you are using vim-go.
let g:go_disable_autoinstall = 1
This line is not required anymore. There is no autoinstall anymore, it was removed 6 months ago (fatih/vim-go#166). So you can safely remove that line :)
@fatih Thanks!
Do you still use this? Just curious
Nope I don’t use it anymore.
…On Wed, Jun 14, 2023, at 15:21, Ryan Olson wrote:
***@***.**** commented on this gist.
Do you still use this? Just curious
—
Reply to this email directly, view it on GitHub <https://gist.github.com/nf/d89c8ba5db9bbf23da18#gistcomment-4598903> or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAASHJNO4CLXWUML6XPK7HLXLFC4FBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVAYTSMRTGEZDANFHORZGSZ3HMVZKMY3SMVQXIZI>.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dsymonds yeah but I don't want to re-exec my .profile; who knows what it does.