forked from x/ContextOS
add make
This commit is contained in:
parent
75b3a4552e
commit
490484bda6
23
Makefile
23
Makefile
@ -38,17 +38,20 @@ linux_arm:
|
|||||||
mv bench bench_1.0_linux_arm
|
mv bench bench_1.0_linux_arm
|
||||||
|
|
||||||
|
|
||||||
DOCS=etc/dotsfile
|
DOTS=etc/dotsfile
|
||||||
back_dotsfile:
|
back_dotsfile:
|
||||||
cp ~/.zshrc $(DOCS)
|
cp ~/.zshrc $(DOTS)
|
||||||
cp ~/.tmux.conf $(DOCS)
|
cp ~/.tmux.conf $(DOTS)
|
||||||
cp ~/.vimrc $(DOCS)
|
cp ~/.vimrc $(DOTS)
|
||||||
|
cp ~/.vim/syntax/shy.vim etc/
|
||||||
|
|
||||||
load_dotsfile: ~/.zshrc ~/.tmux.conf ~/.vimrc
|
load_dotsfile: ~/.zshrc ~/.tmux.conf ~/.vimrc
|
||||||
~/.zshrc: $(DOCS)/.zshrc
|
~/.zshrc: $(DOTS)/.zshrc
|
||||||
cp $(DOCS)/.zshrc ~/
|
cp $(DOTS)/.zshrc ~/
|
||||||
~/.tmux.conf: $(DOCS)/.tmux.conf
|
~/.tmux.conf: $(DOTS)/.tmux.conf
|
||||||
cp $(DOCS)/.tmux.conf ~/
|
cp $(DOTS)/.tmux.conf ~/
|
||||||
~/.vimrc: $(DOCS)/.vimrc
|
~/.vimrc: $(DOTS)/.vimrc
|
||||||
cp $(DOCS)/.vimrc ~/
|
cp $(DOTS)/.vimrc ~/
|
||||||
|
~/.vim/syntax/shy.vim: etc/shy.vim
|
||||||
|
cp etc/shy.vim ~/.vim/syntax/
|
||||||
|
|
||||||
|
@ -20,28 +20,17 @@ set -g renumber-windows on
|
|||||||
bind Space command-prompt
|
bind Space command-prompt
|
||||||
# }}}
|
# }}}
|
||||||
# 窗口管理{{{
|
# 窗口管理{{{
|
||||||
|
bind c new-window
|
||||||
bind w choose-window
|
bind w choose-window
|
||||||
bind q confirm-before kill-window
|
bind q confirm-before kill-window
|
||||||
|
|
||||||
bind f command-prompt -p "find window:" "find-window -N '%%'"
|
bind f command-prompt -p "find window:" "find-window -N '%%'"
|
||||||
bind e command-prompt -p "window new name:" "rename-window '%%'"
|
bind e command-prompt -p "window new name:" "rename-window '%%'"
|
||||||
|
bind m command-prompt -p "move window from:,move window to:" "swap-window -s %% -t %%"
|
||||||
bind c new-window
|
|
||||||
|
|
||||||
bind o last-window
|
bind o last-window
|
||||||
bind n next-window
|
bind n next-window
|
||||||
bind p previous-window
|
bind p previous-window
|
||||||
|
|
||||||
bind f command-prompt -p "find: " "find-window '%%'"
|
|
||||||
bind e command-prompt -p "name: " "rename-window '%%'"
|
|
||||||
bind m command-prompt -p "from:,to:" "swap-window -s %% -t %%"
|
|
||||||
|
|
||||||
bind 1 select-window -t :1
|
|
||||||
bind 2 select-window -t :2
|
|
||||||
bind 3 select-window -t :3
|
|
||||||
bind 4 select-window -t :4
|
|
||||||
bind 5 select-window -t :5
|
|
||||||
bind 6 select-window -t :6
|
|
||||||
# }}}
|
# }}}
|
||||||
# 面板管理{{{
|
# 面板管理{{{
|
||||||
bind i display-panes
|
bind i display-panes
|
||||||
@ -60,7 +49,7 @@ bind C-h command-prompt -p "size:" "resize-pane -L %%"
|
|||||||
bind C-l command-prompt -p "size:" "resize-pane -R %%"
|
bind C-l command-prompt -p "size:" "resize-pane -R %%"
|
||||||
bind C-j command-prompt -p "size:" "resize-pane -D %%"
|
bind C-j command-prompt -p "size:" "resize-pane -D %%"
|
||||||
bind C-k command-prompt -p "size:" "resize-pane -U %%"
|
bind C-k command-prompt -p "size:" "resize-pane -U %%"
|
||||||
bind C-m command-prompt -p "move pane from:,to:" "swap-pane -s %% -t %%"
|
bind C-m command-prompt -p "move pane from:,move pane to:" "swap-pane -s %% -t %%"
|
||||||
# }}}
|
# }}}
|
||||||
# 缓存管理{{{
|
# 缓存管理{{{
|
||||||
bind C-s copy-mode
|
bind C-s copy-mode
|
||||||
@ -70,14 +59,13 @@ bind a choose-buffer
|
|||||||
bind z paste-buffer
|
bind z paste-buffer
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# tmux 1.x{{{
|
# tmux 1.x or other {{{
|
||||||
if-shell "[ `tmux -V |cut -d' ' -f2|cut -d'.' -f1` -lt '2' ]" "\
|
if-shell "[ `tmux -V |cut -d' ' -f2|cut -d'.' -f1` -lt '2' ]" "\
|
||||||
set -g mouse-select-window on; \
|
set -g mouse-select-window on; \
|
||||||
set -g mouse-select-pane on; \
|
set -g mouse-select-pane on; \
|
||||||
set -g mouse-resize-pane on; \
|
set -g mouse-resize-pane on; \
|
||||||
"# }}}
|
set -g mode-mouse on; \
|
||||||
# tmux 2.x# {{{
|
" "\
|
||||||
if-shell "[ `tmux -V |cut -d' ' -f2|cut -d'.' -f1` -gt '1' ]" "\
|
|
||||||
set -g mouse on; \
|
set -g mouse on; \
|
||||||
"
|
"
|
||||||
# }}}
|
# }}}
|
||||||
|
22
etc/dotsfile/cVim
Normal file
22
etc/dotsfile/cVim
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
set showtabindices
|
||||||
|
imap <C-h> deleteChar
|
||||||
|
imap <C-d> deleteForwardChar
|
||||||
|
imap <C-w> deleteWord
|
||||||
|
imap <C-a> beginningOfLine
|
||||||
|
imap <C-k> deleteToEnd
|
||||||
|
map w :tabnew
|
||||||
|
map m :tabnew
|
||||||
|
map t goToTab
|
||||||
|
map q goToTab
|
||||||
|
map p goToTab
|
||||||
|
map v nextTab
|
||||||
|
map c previousTab
|
||||||
|
map <C-j> nextTab
|
||||||
|
map <C-k> previousTab
|
||||||
|
map <C-o> goBack
|
||||||
|
map <C-i> goForward
|
||||||
|
map <C-f> createTabbedHint
|
||||||
|
map s scrollPageUp
|
||||||
|
map a :history
|
||||||
|
map e :tabnew
|
||||||
|
let blacklists = ["https://shylinux.com/*"]
|
@ -19,6 +19,7 @@ syn keyword shStatement let var
|
|||||||
" ctx command
|
" ctx command
|
||||||
syn match shStatement "\(^\|\t\|$(\)cache"
|
syn match shStatement "\(^\|\t\|$(\)cache"
|
||||||
syn match shStatement "\(^\|\t\|$(\)config"
|
syn match shStatement "\(^\|\t\|$(\)config"
|
||||||
|
syn match shStatement "\(^\|\t\|$(\)command"
|
||||||
syn match shStatement "\(^\|\t\|$(\)detail"
|
syn match shStatement "\(^\|\t\|$(\)detail"
|
||||||
syn match shStatement "\(^\|\t\|$(\)option"
|
syn match shStatement "\(^\|\t\|$(\)option"
|
||||||
syn match shStatement "\(^\|\t\|$(\)append"
|
syn match shStatement "\(^\|\t\|$(\)append"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user