diff --git a/bin/ss b/bin/ss index 5aae3d38..6ff2bcfe 100755 --- a/bin/ss +++ b/bin/ss @@ -1,6 +1,8 @@ #!/bin/sh -# Start taking screenshots every N seconds, until this script is called again +# Start taking screenshots every N seconds, until this script is +# called again. + if [ ! -f ~/.ss ]; then dir="$1" if [ $# -eq 0 ]; then @@ -8,7 +10,7 @@ if [ ! -f ~/.ss ]; then dir=~/Desktop/ss fi echo "$dir" > ~/.ss - echo "Timelapse, go!" + echo "Timelapse, go!" i=1;while [ -f ~/.ss ];do screencapture -t jpg -x "$dir/$i.jpg"; let i++;sleep 5; done & else echo "Deactivating timelapse! Images in: $(cat ~/.ss)/" diff --git a/zshrc b/zshrc index d1482d38..d919aedf 100644 --- a/zshrc +++ b/zshrc @@ -12,7 +12,8 @@ fi source ~/.zsh/aliases -# Init extra niceties +# Initialize rbenv and pyenv; rehashing slows down zsh startup, so we +# disable it. is-callable 'rbenv' && eval "$(rbenv init - --no-rehash)" if is-callable 'pyenv'; then eval "$(pyenv init - --no-rehash)"