zsh-shell-init/alias.d/.init

21 lines
367 B
Plaintext
Raw Normal View History

#!env zsh
# shellcheck shell=ksh
# 解决 zsh 一些指令错误匹配的问题
setopt no_nomatch
# 遍历
# for item in `ls ~/alias.d/*.sh`; do
# source $item
# done
export AHome="$HOME"/alias.d
for ali in "$AHome"/*.sh
do
[[ -e "$ali" ]] || break # 无 alias 停止
source "$ali"
done
# 等价于⬇️
# source ~/alias.d/dev.sh
# source ~/alias.d/docker.sh