Merge branch 'main' of github.com:hilaily/.dotfile

This commit is contained in:
2024-11-10 23:49:57 +08:00
2 changed files with 35 additions and 6 deletions
+10 -6
View File
@@ -1,8 +1,8 @@
#################################################################
# option
fish_vi_key_bindings
#################################################################
# basic
# 定义一个函数来检查并添加路径到 PATH
@@ -43,7 +43,6 @@ function sudoo
eval sudo $history[1]
end
# add my script
add_to_path $HOME/.dotfile/script $HOME/.app00/script
@@ -75,13 +74,14 @@ set -gx HOMEBREW_BOTTLE_DOMAIN "https://mirrors.ustc.edu.cn/homebrew-bottles"
set -gx GOPATH $HOME/go:$HOME/workrepo/go
set -gx GOPROXY "goproxy.cn,direct"
set -gx GOSUMDB "sum.golang.google.cn"
add_to_path $HOME/go/bin
add_to_path $HOME/.yarn/bin $HOME/.config/yarn/global/node_modules/.bin
function gtr
go test -gcflags=all=-l -v -run=$argv
end
#################################################################
# node
add_to_path /usr/local/node/bin
#################################################################
# python
@@ -93,10 +93,14 @@ end
add_to_path $PYENV_ROOT/bin
#################################################################
# nvim
add_to_path usr/local/nvim/bin /usr/local/osx-64/nvim/bin
set -gx EDITOR vim
function gtr
go test -gcflags=all=-l -v -run=$argv
end
#################################################################
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
set -e
# install neovim
os_arch=$(uname -s)-$(uname -m)
case $os_arch in
"Darwin-x86_64")
cd /usr/local
wget https://golang.google.cn/dl/go1.23.2.linux-amd64.tar.gz
tar zxvf go1.23.2.linux-amd64.tar.gz
;;
"Linux-x86_64"|"Linux-arm64")
cd /tmp
rm -rf nvim-linux64.tar.gz
wget https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
tar zxvf go1.23.2.linux-amd64.tar.gz
mv go /usr/local/
sudo ln -s /usr/local/go/bin/go/usr/local/bin/go
;;
esac