forked from x/ContextOS
opt some
This commit is contained in:
parent
8c6a9f2f34
commit
29731d7e08
@ -1,5 +1,6 @@
|
|||||||
syntax match Comment "\<Volcanos(\"[^\"]*\""
|
syntax match Comment "\<Volcanos(\"[^\"]*\""
|
||||||
syntax match Comment "\<shy(\"[^\"]*\""
|
syntax match Comment "\<shy(\"[^\"]*\""
|
||||||
|
syntax match Comment "\<name: \"[^\"]*\""
|
||||||
syntax match Comment "\<help: \"[^\"]*\""
|
syntax match Comment "\<help: \"[^\"]*\""
|
||||||
|
|
||||||
highlight canConst ctermfg=yellow
|
highlight canConst ctermfg=yellow
|
||||||
|
10
etc/init.shy
10
etc/init.shy
@ -1,8 +1,12 @@
|
|||||||
~web
|
~web
|
||||||
config share meta.repos github.com/shylinux/contexts
|
config serve meta.title github.com/shylinux/contexts
|
||||||
|
config serve meta.legal.0 `<a href="mailto:shylinux@163.com">shylinux@163.com</a>`
|
||||||
|
config serve meta.legal.1 "京ICP备15046864号-1"
|
||||||
|
|
||||||
|
# config share meta.repos github.com/shylinux/contexts
|
||||||
config share meta.domain https://shylinux.com
|
config share meta.domain https://shylinux.com
|
||||||
config share meta.legal "京ICP备15046864号-1"
|
# config share meta.legal "京ICP备15046864号-1"
|
||||||
config share meta.email `<a href="mailto:shylinux@163.com">shylinux@163.com</a>`
|
# config share meta.email `<a href="mailto:shylinux@163.com">shylinux@163.com</a>`
|
||||||
|
|
||||||
~web.code
|
~web.code
|
||||||
publish bin/ice.sh
|
publish bin/ice.sh
|
||||||
|
47
etc/miss.sh
47
etc/miss.sh
@ -1,39 +1,14 @@
|
|||||||
#!/bin/sh
|
[ -f ~/.ish/plug.sh ] || [ -f ./.ish/plug.sh ] || git clone https://github.com/shylinux/intshell ./.ish
|
||||||
|
[ "$ISH_CONF_PRE" != "" ] || source ./.ish/plug.sh || source ~/.ish/plug.sh
|
||||||
|
# declare -f ish_help_repos &>/dev/null || require conf.sh
|
||||||
|
|
||||||
# 加载框架
|
require help.sh
|
||||||
[ -d ~/.ish ] || [ -d usr/intshell ] || git clone https://github.com/shylinux/intshell usr/intshell
|
require miss.sh
|
||||||
[ "$ISH_CONF_PRE" != "" ] || source usr/intshell/plug.sh || source ~/.ish/plug.sh
|
|
||||||
declare -f ish_help_repos || require conf.sh
|
|
||||||
|
|
||||||
ish_miss_pwd=${PWD}
|
ish_miss_prepare
|
||||||
ish_miss_pwd() { echo $ish_miss_pwd; }
|
ish_miss_compile_prepare
|
||||||
ish_miss_reload() { require ${ish_miss_pwd}/$BASH_SOURCE; }
|
ish_miss_install_prepare
|
||||||
|
|
||||||
ish_miss_prepare_syntax_source=${PWD}/conf
|
|
||||||
ish_miss_prepare_syntax_target=~/.vim/syntax
|
|
||||||
ish_miss_prepare_syntax_language="sh go shy javascript"
|
|
||||||
ish_miss_prepare_syntax() { local prefix=ish_miss_prepare_syntax
|
|
||||||
local source=$(ish_get $prefix source)
|
|
||||||
local target=$(ish_get $prefix target) && [ -d $target ] || mkdir $target
|
|
||||||
for _l in $(ish_get $prefix language); do local file=$target/$_l.vim
|
|
||||||
[ -f $file ] || ln $source/$_l.vim $file
|
|
||||||
done
|
|
||||||
ish_show -green "vim syntax script:" && ls -lht $target
|
|
||||||
}
|
|
||||||
ish_miss_prepare() {
|
|
||||||
ish_miss_prepare_syntax
|
|
||||||
}
|
|
||||||
return
|
|
||||||
|
|
||||||
create() {
|
|
||||||
tmux new-session -d -s miss -n shy
|
|
||||||
tmux split-window -p 30 -t miss:shy.1
|
|
||||||
tmux split-window -h -t miss:shy.2
|
|
||||||
tmux send-keys -t miss:shy.3 "tail -f bin/boot.log" Enter
|
|
||||||
tmux send-keys -t miss:shy.2 "bin/ice.sh start serve shy" Enter
|
|
||||||
tmux send-keys -t miss:shy.1 "vim" Enter
|
|
||||||
}
|
|
||||||
|
|
||||||
tmux has-session -t miss &>/dev/null || create
|
|
||||||
tmux attach-session -t miss
|
|
||||||
|
|
||||||
|
ish_miss_volcanos_prepare
|
||||||
|
ish_miss_icebergs_prepare
|
||||||
|
ish_miss_intshell_prepare
|
||||||
|
2
go.mod
2
go.mod
@ -4,7 +4,7 @@ go 1.13
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/shylinux/icebergs v0.1.23
|
github.com/shylinux/icebergs v0.1.23
|
||||||
github.com/shylinux/toolkits v0.1.4
|
github.com/shylinux/toolkits v0.1.5
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/shylinux/icebergs => ./usr/icebergs
|
replace github.com/shylinux/icebergs => ./usr/icebergs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user