mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 18:26:59 +08:00
Dict Xiong
c354f980bb
* piv logi fix * dogo: $DFS * snasp; doll: $2 for the name * DFS_UPDATE_CHANNEL? * git-branches * ci: git-branches Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
51 lines
862 B
Bash
51 lines
862 B
Bash
#!/bin/false "This script should be sourced in zsh, not executed directly"
|
|
|
|
set -ex
|
|
|
|
# check files
|
|
cd /
|
|
l
|
|
cd ~
|
|
l
|
|
dfs cd
|
|
l
|
|
pwd
|
|
test -f .zshrc2
|
|
diff -q ./.ssh/authorized_keys2 ~/.ssh/authorized_keys2
|
|
grep -q ".zshrc2" ~/.zshrc
|
|
|
|
# check scripts and functions
|
|
dfs version
|
|
dfs log 1
|
|
z ~
|
|
test ~ -ef "$(pwd)"
|
|
dogo
|
|
doll
|
|
dfs cd
|
|
tools/common.sh get_os_type
|
|
tools/common.sh get_linux_dist
|
|
|
|
# check alias
|
|
alias p114
|
|
sibd || which sibd
|
|
piv-agent || which piv-agent
|
|
git-branches || which git-branches
|
|
|
|
# check update
|
|
DFS_VERSION=`dfs version`
|
|
dfs update
|
|
dfs version
|
|
test `git rev-parse HEAD` = `curl -fsSL https://api.beardic.cn/get-var/dfs-commit-id`
|
|
|
|
# clean
|
|
git reset --hard $DFS_VERSION
|
|
|
|
# then check install.sh
|
|
./install.sh -l
|
|
dfs version
|
|
test `git rev-parse HEAD` = `curl -fsSL https://api.beardic.cn/get-var/dfs-commit-id`
|
|
|
|
# clean
|
|
git reset --hard $DFS_VERSION
|
|
|
|
set +x |