~xdavidwu/dotfiles

e56a0d0cee223f9008ed64e406455fc7eaa887e3 — xdavidwu 3 years ago c3a8399
bashrc: add a simple function to sleep until time
1 files changed, 4 insertions(+), 0 deletions(-)

M .bashrc
M .bashrc => .bashrc +4 -0
@@ 113,6 113,10 @@ timesync() {
	sudo busybox hwclock -wu
}

sleepto() {
	sleep $(($(date --date="$1" +%s) - $(date +%s)))
}

# application envs
# policy: should here even if global like /etc/environments
export GPG_TTY=$(tty)