mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 21:46:52 +08:00
rebase zshrc, introduce DFS_NO_WALL
This commit is contained in:
parent
0739410aef
commit
17778de94d
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
@ -31,6 +31,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo $SHELL
|
echo $SHELL
|
||||||
antigen list
|
antigen list
|
||||||
|
antigen reset
|
||||||
|
|
||||||
|
- name: antigen build with DFS_NO_WALL
|
||||||
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
||||||
|
env:
|
||||||
|
DFS_NO_WALL: 1
|
||||||
|
run: |
|
||||||
|
echo $SHELL
|
||||||
|
antigen list
|
||||||
|
|
||||||
- name: run tests
|
- name: run tests
|
||||||
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
shell: /bin/zsh -ileo PIPE_FAIL {0}
|
||||||
|
|
40
.zshrc2
40
.zshrc2
|
@ -3,20 +3,23 @@ export LC_ALL=C.UTF-8
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
|
|
||||||
# antigen
|
# antigen
|
||||||
|
if [[ -z "$DFS_NO_WALL" ]]; then
|
||||||
# if test -z "$NO_WALL"; then
|
ANTIGEN_URL="https://gitee.com/dictxiong/antigen/raw/develop/bin/antigen.zsh"
|
||||||
# ANTIGEN_OMZ_REPO_URL="https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git"
|
ANTIGEN_OMZ_REPO_URL="https://gitee.com/dictxiong/ohmyzsh.git"
|
||||||
# ANTIGEN_URL="https://raw.fastgit.org/zsh-users/antigen/master/bin/antigen.zsh"
|
ANTIGEN_PLUGINS=( \
|
||||||
# GIHUB_PROXY="https://hub.fastgit.xyz/"
|
"https://gitee.com/dictxiong/zsh-syntax-highlighting" \
|
||||||
# else
|
"https://gitee.com/dictxiong/zsh-completions" \
|
||||||
# ANTIGEN_URL="git.io/antigen"
|
"https://gitee.com/dictxiong/zsh-autosuggestions" \
|
||||||
# GIHUB_PROXY=""
|
)
|
||||||
# fi
|
else
|
||||||
# antigen bundle ${GIHUB_PROXY}zsh-users/zsh-syntax-highlighting
|
ANTIGEN_URL="git.io/antigen"
|
||||||
# antigen bundle ${GIHUB_PROXY}zsh-users/zsh-completions
|
ANTIGEN_OMZ_REPO_URL="https://github.com/ohmyzsh/ohmyzsh.git"
|
||||||
# antigen bundle ${GIHUB_PROXY}zsh-users/zsh-autosuggestions
|
ANTIGEN_PLUGINS=( \
|
||||||
ANTIGEN_OMZ_REPO_URL="https://gitee.com/dictxiong/ohmyzsh.git"
|
"https://github.com/zsh-users/zsh-syntax-highlighting" \
|
||||||
ANTIGEN_URL="https://gitee.com/dictxiong/antigen/raw/develop/bin/antigen.zsh"
|
"https://github.com/zsh-users/zsh-completions" \
|
||||||
|
"https://github.com/zsh-users/zsh-autosuggestions" \
|
||||||
|
)
|
||||||
|
fi
|
||||||
ANTIGEN="$HOME/antigen.zsh"
|
ANTIGEN="$HOME/antigen.zsh"
|
||||||
# Install antigen.zsh if not exist
|
# Install antigen.zsh if not exist
|
||||||
if [ ! -f "$ANTIGEN" ]; then
|
if [ ! -f "$ANTIGEN" ]; then
|
||||||
|
@ -40,9 +43,9 @@ if [ ! -f "$ANTIGEN" ]; then
|
||||||
fi
|
fi
|
||||||
# config and enable antigen
|
# config and enable antigen
|
||||||
source "$ANTIGEN"
|
source "$ANTIGEN"
|
||||||
antigen use oh-my-zsh
|
|
||||||
# enable plugins
|
# enable plugins
|
||||||
antigen_plugins=( \
|
antigen use oh-my-zsh
|
||||||
|
ANTIGEN_PLUGINS+=( \
|
||||||
"command-not-found" \
|
"command-not-found" \
|
||||||
"docker" \
|
"docker" \
|
||||||
"extract" \
|
"extract" \
|
||||||
|
@ -52,11 +55,8 @@ antigen_plugins=( \
|
||||||
"tmux" \
|
"tmux" \
|
||||||
"ufw" \
|
"ufw" \
|
||||||
"z" \
|
"z" \
|
||||||
"https://gitee.com/dictxiong/zsh-syntax-highlighting" \
|
|
||||||
"https://gitee.com/dictxiong/zsh-completions" \
|
|
||||||
"https://gitee.com/dictxiong/zsh-autosuggestions" \
|
|
||||||
)
|
)
|
||||||
for i in ${antigen_plugins[*]}
|
for i in ${ANTIGEN_PLUGINS[*]}
|
||||||
do
|
do
|
||||||
if [[ -z $ANTIGEN_EXCLUDE || ! $i =~ $ANTIGEN_EXCLUDE ]]; then
|
if [[ -z $ANTIGEN_EXCLUDE || ! $i =~ $ANTIGEN_EXCLUDE ]]; then
|
||||||
antigen bundle $i
|
antigen bundle $i
|
||||||
|
|
Loading…
Reference in New Issue
Block a user