# 🔮Home Script
# Install
# apt-get install -y zsh
# sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
wget -O "$HOME/.zshrc" https://flint.geektr.co/slash/home/geektr/.zshrc
wget -O "$HOME/.common.profile" https://flint.geektr.co/slash/home/geektr/.common.profile
tee -a .bashrc >/dev/null <<"END"
# includes common profile
if [ -f "$HOME/.common.profile" ] ; then
. "$HOME/.common.profile"
fi
END
# Tools Inatall
mkdir -p /tmp/op
wget -O /tmp/op/op.zip https://cache.agilebits.com/dist/1P/op/pkg/v1.1.0/op_linux_amd64_v1.1.0.zip
unzip /tmp/op/op.zip -d /tmp/op
mkdir "$HOME/.bin"
mv /tmp/op/op "$HOME/.bin/"
# Commands
flint_loader: 载入 Flint Loaderupdate_self: 升级当前 Shell 配置文件
Environment
set_proxy/unset_proxy: 设置代理/解除代理
1Password
op_login: 登录 1Passwordop_get: 获取 1Password 的条目字段op_get <item> <field>op_deep_get: 获取 1Password 的 section 内部的字段op_deep_get <item> <section> <field>init_govc: 从 1Password 初始化 GOVC 环境init_govc [server_name]init_aliyun: 从 1Password 初始化 GOVC 环境init_aliyun [key_name]init_dnspod: 从 1Password 初始化 GOVC 环境init_dnspod [key_name]