lint: remove endline \

This commit is contained in:
Dict Xiong 2022-11-18 22:03:41 +08:00
parent 59a1dda958
commit 84afe22bf2

36
.zshrc2
View File

@ -14,18 +14,18 @@ export LESS_TERMCAP_md=$'\E[01;33m'
if [[ -z "$DFS_NO_WALL" ]]; then if [[ -z "$DFS_NO_WALL" ]]; then
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/zsh-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"
) )
else else
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/zsh-users/zsh-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"
) )
fi fi
ANTIGEN="$HOME/antigen.zsh" ANTIGEN="$HOME/antigen.zsh"
@ -53,16 +53,16 @@ fi
source "$ANTIGEN" source "$ANTIGEN"
# enable plugins # enable plugins
antigen use oh-my-zsh antigen use oh-my-zsh
ANTIGEN_PLUGINS+=( \ ANTIGEN_PLUGINS+=(
"command-not-found" \ "command-not-found"
"docker" \ "docker"
"extract" \ "extract"
"fzf" \ "fzf"
"git" \ "git"
"ripgrep" \ "ripgrep"
"tmux" \ "tmux"
"ufw" \ "ufw"
"z" \ "z"
) )
for i in ${ANTIGEN_PLUGINS[*]}; do for i in ${ANTIGEN_PLUGINS[*]}; do
if [[ -z $ANTIGEN_EXCLUDE || ! $i =~ $ANTIGEN_EXCLUDE ]]; then if [[ -z $ANTIGEN_EXCLUDE || ! $i =~ $ANTIGEN_EXCLUDE ]]; then