Skip to content

Instantly share code, notes, and snippets.

View ozydingo's full-sized avatar

Andrew H Schwartz ozydingo

View GitHub Profile
@ozydingo
ozydingo / current-dir-in-iterm-tab-title.sh
Last active June 12, 2018 18:54 — forked from phette23/current-dir-in-iterm-tab-title.sh
Set the iTerm tab title to the current directory, not full path.
# Ensure that you have your iTerm configured to allow the shell to modify the window / tab title.
# In iTerm 3.1.2 this is a checkbox located in Settings > Profile > Terminal: "Terminal may set tab/window title"
# Then, 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
--
Introduction:
This coding challenge is designed for you to show off your skills to the 3Play Media Developer team. You
should have the following challenge completed by the time you come in for your in-person interview so we
can take a look at it together. While all of the basic requirements of this project should be met, you're
encouraged to make this project your own and implement any additional features that you see fit.
Feel free to ask whatever questions, use whatever resources and provide whatever documentation
you'd like during the completion of this project.