mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 14:37:04 +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
|
||||
if [[ -z "$DFS_INITED" && -z "$CI" ]]; 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
|
||||
"$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
|
||||
|
||||
|
@ -174,4 +174,4 @@ dfs()
|
|||
|
||||
# clean
|
||||
unset i
|
||||
export DFS_INITED=1
|
||||
export DFS_INITED=1
|
||||
|
|
Loading…
Reference in New Issue
Block a user