Skip to content

Instantly share code, notes, and snippets.

View andrioid's full-sized avatar

Andri Óskarsson andrioid

View GitHub Profile
@andrioid
andrioid / .bash_profile
Created October 4, 2017 11:34 — forked from jusopi/check.sh
Set node version per project using .nvmrc file
# change title name of tab in terminal
function title {
echo -ne "\033]0;"$*"\007"
}
enter_directory(){
if [ "$PWD" != "$PREV_PWD" ]; then
PREV_PWD="$PWD";
title $(echo ${PWD##*/}) $(node -v);
if [ -e ".nvmrc" ]; then