When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
before 'deploy', 'deploy:good_luck' | |
before 'deploy:migration', 'deploy:good_luck' | |
task :good_luck, roles: :app, except: { no_release: true } do | |
if Time.now.wday == 5 | |
logger.debug('') | |
logger.debug('┓┏┓┏┓┃') | |
logger.debug('┛┗┛┗┛┃\○/') | |
logger.debug('┓┏┓┏┓┃ / Friday') | |
logger.debug('┛┗┛┗┛┃ノ)') |
# put this in your .bash_profile | |
if [ $ITERM_SESSION_ID ]; then | |
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
fi | |
# Piece-by-Piece Explanation: | |
# the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
# iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
# the $PROMPT_COMMAND environment variable is executed every time a command is run | |
# see: ss64.com/bash/syntax-prompt.html |