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