mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 14:27:01 +08:00
login beacon 2>/dev/null
This commit is contained in:
parent
765f59ad49
commit
334622aa9f
6
.zshrc2
6
.zshrc2
|
@ -92,9 +92,9 @@ antigen apply
|
||||||
# beacon
|
# beacon
|
||||||
if [[ -z "$DFS_INITED" && -z "$CI" ]]; then
|
if [[ -z "$DFS_INITED" && -z "$CI" ]]; then
|
||||||
if [[ "$EUID" == "0" ]]; then
|
if [[ "$EUID" == "0" ]]; then
|
||||||
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.root" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')"
|
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.root" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')" 2>/dev/null
|
||||||
else
|
else
|
||||||
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.user" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')"
|
"$DOTFILES/tools/common.sh" apost_beacon "sys.login.user" "$(who am i | sed -E 's/ +/ /g' | awk '$1=$1')" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -174,4 +174,4 @@ dfs()
|
||||||
|
|
||||||
# clean
|
# clean
|
||||||
unset i
|
unset i
|
||||||
export DFS_INITED=1
|
export DFS_INITED=1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user