From 6df360c157f2c44f5cce88f7172fe543bbc0a4a2 Mon Sep 17 00:00:00 2001 From: shaoying Date: Thu, 12 Mar 2020 00:46:46 +0800 Subject: [PATCH] add aaa.auth --- Makefile | 2 +- etc/conf/tmux.conf | 1 - etc/init.shy | 1 + src/main.go | 2 ++ 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cbef731f..d474089f 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,3 @@ all: @echo && date - CGO_ENABLED=0 GOPRIVATE=github.com GOPROXY=https://goproxy.cn go build -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart + GOPRIVATE=github.com GOPROXY=https://goproxy.cn CGO_ENABLED=0 go build -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart diff --git a/etc/conf/tmux.conf b/etc/conf/tmux.conf index 94a8301d..57b30454 100644 --- a/etc/conf/tmux.conf +++ b/etc/conf/tmux.conf @@ -90,5 +90,4 @@ bind -t vi-edit C-f cursor-right bind -t vi-edit C-j enter # }}} -bind C-r send-keys "export ctx_dev=$ctx_self ctx_share=$ctx_share\ncurl -s \$ctx_dev/publish/auto.sh >auto.sh\nsource auto.sh\nShyLogin\n" source-file ~/.tmux_local diff --git a/etc/init.shy b/etc/init.shy index 0f91247d..0950d45a 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -3,6 +3,7 @@ publish usr/icebergs/template.sh publish usr/icebergs/misc/zsh/auto.sh publish usr/icebergs/misc/vim/auto.vim + publish usr/icebergs/misc/tmux/auto.tmux ~web.code.tmux init diff --git a/src/main.go b/src/main.go index 30cea93f..88838894 100644 --- a/src/main.go +++ b/src/main.go @@ -12,6 +12,8 @@ import ( _ "github.com/shylinux/icebergs/misc/mp" _ "github.com/shylinux/icebergs/misc/pi" _ "github.com/shylinux/icebergs/misc/wx" + + _ "github.com/shylinux/icebergs/misc/auth" ) func main() {