mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-11-06 03:58:16 +08:00
Compare commits
2 Commits
e937935a28
...
v1.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 39b8dfce82 | |||
| 1a62ffe74b |
17
.github/workflows/gitee_sync_dependencies.yml
vendored
17
.github/workflows/gitee_sync_dependencies.yml
vendored
@@ -38,6 +38,23 @@ jobs:
|
|||||||
force_update: true # 启用后,强制同步,即强制覆盖目的端仓库
|
force_update: true # 启用后,强制同步,即强制覆盖目的端仓库
|
||||||
static_list: "antigen,zsh-syntax-highlighting,zsh-autosuggestions,zsh-completions" # 静态同步列表,在此填写需要同步的仓库名称,可填写多个
|
static_list: "antigen,zsh-syntax-highlighting,zsh-autosuggestions,zsh-completions" # 静态同步列表,在此填写需要同步的仓库名称,可填写多个
|
||||||
timeout: '600s' # git超时设置,超时后会自动重试git操作
|
timeout: '600s' # git超时设置,超时后会自动重试git操作
|
||||||
|
zdharma-continuum:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: zdharma-continuum repos # 名字随便起
|
||||||
|
uses: Yikun/hub-mirror-action@v1.2 # 使用Yikun/hub-mirror-action
|
||||||
|
with:
|
||||||
|
src: github/zdharma-continuum # 源端账户名(github)
|
||||||
|
dst: gitee/dictxiong # 目的端账户名(gitee)
|
||||||
|
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} # SSH密钥对中的私钥
|
||||||
|
dst_token: ${{ secrets.GITEE_TOKEN }} # Gitee账户的私人令牌
|
||||||
|
src_account_type: org
|
||||||
|
dst_account_type: user # 账户类型
|
||||||
|
clone_style: "https" # 使用https方式进行clone,也可以使用ssh
|
||||||
|
debug: true # 启用后会显示所有执行命令
|
||||||
|
force_update: true # 启用后,强制同步,即强制覆盖目的端仓库
|
||||||
|
static_list: "fast-syntax-highlighting" # 静态同步列表,在此填写需要同步的仓库名称,可填写多个
|
||||||
|
timeout: '600s' # git超时设置,超时后会自动重试git操作
|
||||||
tmux-mem-cpu-load:
|
tmux-mem-cpu-load:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
7
.zshrc2
7
.zshrc2
@@ -22,7 +22,7 @@ if [[ "$DFS_NO_WALL" == "1" ]]; then
|
|||||||
ANTIGEN_URL="https://raw.githubusercontent.com/zsh-users/antigen/develop/bin/antigen.zsh"
|
ANTIGEN_URL="https://raw.githubusercontent.com/zsh-users/antigen/develop/bin/antigen.zsh"
|
||||||
ANTIGEN_OMZ_REPO_URL="https://github.com/ohmyzsh/ohmyzsh.git"
|
ANTIGEN_OMZ_REPO_URL="https://github.com/ohmyzsh/ohmyzsh.git"
|
||||||
ANTIGEN_PLUGINS=(
|
ANTIGEN_PLUGINS=(
|
||||||
"https://github.com/zsh-users/zsh-syntax-highlighting"
|
"https://github.com/zdharma-continuum/fast-syntax-highlighting"
|
||||||
"https://github.com/zsh-users/zsh-completions"
|
"https://github.com/zsh-users/zsh-completions"
|
||||||
"https://github.com/zsh-users/zsh-autosuggestions"
|
"https://github.com/zsh-users/zsh-autosuggestions"
|
||||||
)
|
)
|
||||||
@@ -30,7 +30,7 @@ else
|
|||||||
ANTIGEN_URL="https://gitee.com/dictxiong/antigen/raw/develop/bin/antigen.zsh"
|
ANTIGEN_URL="https://gitee.com/dictxiong/antigen/raw/develop/bin/antigen.zsh"
|
||||||
ANTIGEN_OMZ_REPO_URL="https://gitee.com/dictxiong/ohmyzsh.git"
|
ANTIGEN_OMZ_REPO_URL="https://gitee.com/dictxiong/ohmyzsh.git"
|
||||||
ANTIGEN_PLUGINS=(
|
ANTIGEN_PLUGINS=(
|
||||||
"https://gitee.com/dictxiong/zsh-syntax-highlighting"
|
"https://gitee.com/dictxiong/fast-syntax-highlighting"
|
||||||
"https://gitee.com/dictxiong/zsh-completions"
|
"https://gitee.com/dictxiong/zsh-completions"
|
||||||
"https://gitee.com/dictxiong/zsh-autosuggestions"
|
"https://gitee.com/dictxiong/zsh-autosuggestions"
|
||||||
)
|
)
|
||||||
@@ -140,6 +140,9 @@ bindkey "\e[1;5D" backward-word # alt+left_arrow; termius
|
|||||||
|
|
||||||
bindkey "\ed" delete-char # alt+d
|
bindkey "\ed" delete-char # alt+d
|
||||||
|
|
||||||
|
# mods
|
||||||
|
autoload zcalc
|
||||||
|
|
||||||
# dfs
|
# dfs
|
||||||
dfs()
|
dfs()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -197,6 +197,9 @@ install_crontab()
|
|||||||
{
|
{
|
||||||
if [[ -x $(command -v crontab) ]]; then
|
if [[ -x $(command -v crontab) ]]; then
|
||||||
fmt_note "installing \"$CRON_JOB\" to crontab ..."
|
fmt_note "installing \"$CRON_JOB\" to crontab ..."
|
||||||
|
if ! crontab -l 1>/dev/null 2>&1; then
|
||||||
|
echo -n | crontab -
|
||||||
|
fi
|
||||||
( crontab -l | grep -vxF "${CRON_JOB}" | grep -v "no crontab for"; echo "$CRON_JOB" ) | crontab -
|
( crontab -l | grep -vxF "${CRON_JOB}" | grep -v "no crontab for"; echo "$CRON_JOB" ) | crontab -
|
||||||
else
|
else
|
||||||
fmt_warning "crontab does not exist. skipping ..."
|
fmt_warning "crontab does not exist. skipping ..."
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ get_server_meta() {
|
|||||||
if [[ "$remote" == *@* ]]; then
|
if [[ "$remote" == *@* ]]; then
|
||||||
RET_USERNAME=${remote%%@*}
|
RET_USERNAME=${remote%%@*}
|
||||||
remote=${remote#*@}
|
remote=${remote#*@}
|
||||||
check_username $RET_USERNAME || fmt_fatal invalid username \"$RET_USERNAME\"
|
check_username $RET_USERNAME || fmt_warning \"$RET_USERNAME\" is not a valid unix username
|
||||||
fi
|
fi
|
||||||
# if in the form ...:22
|
# if in the form ...:22
|
||||||
if [[ "$remote" == "["*"]":* || ( "$remote" != "["*"]" && "$remote" == *:* ) ]]; then
|
if [[ "$remote" == "["*"]":* || ( "$remote" != "["*"]" && "$remote" == *:* ) ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user