diff options
author | Blaise Thompson <blaise@untzag.com> | 2018-03-26 14:47:07 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2018-03-26 14:47:07 -0500 |
commit | efe0c23ddfa13baaaf15db67f008b413fecfbdf6 (patch) | |
tree | ea13bedbc1705e4e15d705b4e3a6eb6fa969d1ca | |
parent | 3964d15e0655d037abb2037976c7f86b230aa8af (diff) |
countdown
-rw-r--r-- | dotfiles/bashrc.sync | 15 | ||||
-rw-r--r-- | dotfiles/spacemacs | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/dotfiles/bashrc.sync b/dotfiles/bashrc.sync index 72fc9fd..cf7dc81 100644 --- a/dotfiles/bashrc.sync +++ b/dotfiles/bashrc.sync @@ -4,3 +4,18 @@ export PATH="/opt/anaconda/bin:$PATH" export VISUAL=vim export EDITOR="$VISUAL" + +function blaise() { + echo hello +} + + +function countdown(){ + secs=$(($1 * 60)); + date1=$((`date +%s` + "$secs")); + while [ "$date1" -ge `date +%s` ]; do + echo -ne "$(date -u --date @$(($date1 - `date +%s`)) +%H:%M:%S)\r"; + sleep 0.1 + done +} + diff --git a/dotfiles/spacemacs b/dotfiles/spacemacs index cb41d75..f596743 100644 --- a/dotfiles/spacemacs +++ b/dotfiles/spacemacs @@ -15,7 +15,7 @@ git helm latex - (latex :variables latex-enable-folding nil) + (latex :variables latex-enable-folding t) markdown org pdf-tools |