Created
January 25, 2016 12:42
-
-
Save rahim/e378937f72a345267e3b to your computer and use it in GitHub Desktop.
Time based default dir smarts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dayofweek=`date +%u` # Monday is 1 | |
hourofday=`date +%H` | |
if test $dayofweek -lt 6 -a $hourofday -gt 8 -a $hourofday -lt 19 | |
then | |
(hostname | grep koto > /dev/null 2>&1) && cd ~/working/litmus | |
fi | |
# Nice idea, but doesn't play well with my iTerm config for default dirs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment