update_go script change

master
BraydonKains 2 years ago
parent 5742ab296d
commit 95fd2d0a2f

@ -80,6 +80,7 @@ call plug#end()
"Telescope "Telescope
nnoremap <leader>ff <cmd>Telescope find_files<cr> nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <C-p> <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr> nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr> nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr> nnoremap <leader>fh <cmd>Telescope help_tags<cr>

@ -1,7 +1,8 @@
GO_VERSION="$1" GO_VERSION="$1"
TMP_DIR="tmp_go" TMP_DIR="tmp_go"
mkdir -p ${TMP_DIR} mkdir -p ${TMP_DIR}
wget --no-verbose --output-document=/dev/stdout https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz | \
wget --output-document=/dev/stdout https://go.dev/dl/$GO_VERSION.linux-amd64.tar.gz | \
sudo tar --directory ${TMP_DIR} -xzf /dev/stdin sudo tar --directory ${TMP_DIR} -xzf /dev/stdin
sudo rm -rf /usr/local/go sudo rm -rf /usr/local/go
sudo mv ${TMP_DIR}/go /usr/local sudo mv ${TMP_DIR}/go /usr/local

Loading…
Cancel
Save