Check CRLF

This commit is contained in:
Dict Xiong 2022-05-07 16:19:39 +08:00 committed by GitHub
parent 30a98ebbfc
commit 08baee3279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

120
.zshrc2
View File

@ -1,61 +1,61 @@
export TERM="xterm-256color" export TERM="xterm-256color"
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
export LANG=C.UTF-8 export LANG=C.UTF-8
# antigen # antigen
# if test -z "$NO_WALL"; then # if test -z "$NO_WALL"; then
# ANTIGEN_OMZ_REPO_URL="https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git" # ANTIGEN_OMZ_REPO_URL="https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git"
# ANTIGEN_URL="https://raw.fastgit.org/zsh-users/antigen/master/bin/antigen.zsh" # ANTIGEN_URL="https://raw.fastgit.org/zsh-users/antigen/master/bin/antigen.zsh"
# GIHUB_PROXY="https://hub.fastgit.xyz/" # GIHUB_PROXY="https://hub.fastgit.xyz/"
# else # else
# ANTIGEN_URL="git.io/antigen" # ANTIGEN_URL="git.io/antigen"
# GIHUB_PROXY="" # GIHUB_PROXY=""
# fi # fi
# antigen bundle ${GIHUB_PROXY}zsh-users/zsh-syntax-highlighting # antigen bundle ${GIHUB_PROXY}zsh-users/zsh-syntax-highlighting
# antigen bundle ${GIHUB_PROXY}zsh-users/zsh-completions # antigen bundle ${GIHUB_PROXY}zsh-users/zsh-completions
# antigen bundle ${GIHUB_PROXY}zsh-users/zsh-autosuggestions # antigen bundle ${GIHUB_PROXY}zsh-users/zsh-autosuggestions
ANTIGEN_OMZ_REPO_URL="https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git" ANTIGEN_OMZ_REPO_URL="https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git"
ANTIGEN_URL="https://gitee.com/dictxiong/antigen/raw/master/bin/antigen.zsh" ANTIGEN_URL="https://gitee.com/dictxiong/antigen/raw/master/bin/antigen.zsh"
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
echo "Installing antigen ..." echo "Installing antigen ..."
TMPFILE="/tmp/antigen.zsh" TMPFILE="/tmp/antigen.zsh"
if [ -x "$(which curl)" ]; then if [ -x "$(which curl)" ]; then
curl -L "$ANTIGEN_URL" -o "$TMPFILE" curl -L "$ANTIGEN_URL" -o "$TMPFILE"
elif [ -x "$(which wget)" ]; then elif [ -x "$(which wget)" ]; then
wget "$ANTIGEN_URL" -O "$TMPFILE" wget "$ANTIGEN_URL" -O "$TMPFILE"
else else
echo "ERROR: please install curl or wget before installation !!" echo "ERROR: please install curl or wget before installation !!"
exit exit
fi fi
if [ ! $? -eq 0 ]; then if [ ! $? -eq 0 ]; then
echo "" echo ""
echo "ERROR: downloading antigen.zsh ($ANTIGEN_URL) failed !!" echo "ERROR: downloading antigen.zsh ($ANTIGEN_URL) failed !!"
exit exit
fi; fi;
echo "move $TMPFILE to $ANTIGEN" echo "move $TMPFILE to $ANTIGEN"
mv "$TMPFILE" "$ANTIGEN" mv "$TMPFILE" "$ANTIGEN"
fi fi
# config and enable antigen # config and enable antigen
source "$ANTIGEN" source "$ANTIGEN"
antigen use oh-my-zsh antigen use oh-my-zsh
# enable plugins # enable plugins
antigen bundle git antigen bundle git
antigen bundle command-not-found antigen bundle command-not-found
antigen bundle thefuck antigen bundle thefuck
antigen bundle fzf antigen bundle fzf
antigen bundle docker antigen bundle docker
antigen bundle ripgrep antigen bundle ripgrep
antigen bundle tmux antigen bundle tmux
antigen bundle ufw antigen bundle ufw
antigen bundle z antigen bundle z
antigen bundle https://gitee.com/dictxiong/zsh-syntax-highlighting antigen bundle https://gitee.com/dictxiong/zsh-syntax-highlighting
antigen bundle https://gitee.com/dictxiong/zsh-completions antigen bundle https://gitee.com/dictxiong/zsh-completions
antigen bundle https://gitee.com/dictxiong/zsh-autosuggestions antigen bundle https://gitee.com/dictxiong/zsh-autosuggestions
# select theme # select theme
antigen theme ys antigen theme ys
# apply # apply
antigen apply antigen apply
# end of antigen config # end of antigen config