Signed-off-by: Lee Tang <i@d0zingcat.dev>
This commit is contained in:
Lee Tang
2022-09-15 12:09:29 +08:00
parent bf3e72eb71
commit f1f349f7ec
3 changed files with 17 additions and 11 deletions

14
.zshrc
View File

@@ -134,16 +134,22 @@ function klogs() {
}
function rsync_debank() {
local_debank=`pwd`
local_dir=${PWD##*/}
local_dir=${local_dir:-/}
if [ $# -eq 0 ]; then
remote_debank="aws-optimus-1:/home/tangli/DeBankCore"
remote_debank="aws-optimus-1:/home/tangli/$local_dir"
elif [ $# -eq 1 ]; then
remote_debank="aws-optimus-$1:/home/tangli/DeBankCore"
remote_debank="aws-optimus-$1:/home/tangli/$local_dir"
else
echo 'error!'
fi
local_debank="$HOME/Workspace/employment/debank/DeBankCore"
rsync_exclude="$local_debank/rsync_exclude.txt"
rsync -r -h -v --exclude-from=$rsync_exclude --exclude=/venv --exclude=/.vscode --exclude=/.git $local_debank/ $remote_debank
if [ -f $rsync_exclude ]; then
rsync -r -h -v --exclude-from=$rsync_exclude --exclude=/venv --exclude=/.vscode --exclude=/.git $local_debank/ $remote_debank
else
rsync -r -h -v --exclude=/venv --exclude=/.vscode --exclude=/.git $local_debank/ $remote_debank
fi
}
#export LESS_TERMCAP_so=$'\E[30;43m'

View File

@@ -152,10 +152,10 @@ map('i', '<F1>', '<nop>')
-- map('n', '<leader>e', '1<c-w>w')
-- map('n', '<leader>p', ':wincmd p<CR>')
map('i', '<C-e>', 'copilot#Accept()', { expr = true })
vim.g.copilot_no_tab_map = 1
vim.g.copilot_no_maps = 1
vim.g.copilot_assume_mapped = 1
-- map('i', '<C-e>', 'copilot#Accept()', { expr = true })
-- vim.g.copilot_no_tab_map = 1
-- vim.g.copilot_no_maps = 1
-- vim.g.copilot_assume_mapped = 1
require('plugins')
require('funcs')

View File

@@ -26,9 +26,9 @@ cmp.setup({
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
--["<C-e>"] = cmp.mapping.close(),
['<C-e>'] = function(fallback)
fallback()
end,
-- ['<C-e>'] = function(fallback)
-- fallback()
-- end,
['<CR>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = true,