mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 17:06:58 +08:00
set DFS_INITED and do not send login beacon if it was set
This commit is contained in:
parent
860ef51441
commit
a9850e7e3f
7
.zshrc2
7
.zshrc2
|
@ -90,10 +90,12 @@ antigen apply
|
||||||
# end of antigen config
|
# end of antigen config
|
||||||
|
|
||||||
# beacon
|
# beacon
|
||||||
if [[ "$EUID" == "0" ]]; then
|
if [[ -z "$DFS_INITED" && -z "$CI" ]]; then
|
||||||
|
if [[ "$EUID" == "0" ]]; then
|
||||||
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.root"
|
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.root"
|
||||||
else
|
else
|
||||||
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.user"
|
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.user"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# alias
|
# alias
|
||||||
|
@ -209,3 +211,4 @@ dfs()
|
||||||
|
|
||||||
# clean
|
# clean
|
||||||
unset i
|
unset i
|
||||||
|
export DFS_INITED=1
|
|
@ -17,7 +17,7 @@ grep -q ".zshrc2" ~/.zshrc
|
||||||
# check scripts and functions
|
# check scripts and functions
|
||||||
dfs version
|
dfs version
|
||||||
dfs log 1
|
dfs log 1
|
||||||
dfs beacon gh.ci
|
dfs beacon gh.ci $GITHUB_SHA
|
||||||
z ~
|
z ~
|
||||||
test ~ -ef "$(pwd)"
|
test ~ -ef "$(pwd)"
|
||||||
dogo
|
dogo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user