Last active
June 23, 2016 18:00
-
-
Save coderberry/de61da43639671304092a76172504511 to your computer and use it in GitHub Desktop.
Functions that can be added to bashrc for iTerm 3
This file contains hidden or 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
alltabs: | |
layout: | |
tabs: | |
- | |
root: "~/Code/Nuvi/gutenberg" | |
layout: | |
- | |
- | | |
title Gutenberg; | |
color green; | |
PORT=3003 bundle exec puma -C config/puma.rb | |
- | | |
title Gutenberg; | |
color green; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title Gutenberg; | |
color green; | |
npm run watch | |
- | | |
title Gutenberg; | |
color green | |
- | |
root: "~/Code/Nuvi/uhf" | |
layout: | |
- | |
- | | |
title UHF; | |
color blue; | |
bundle exec rails server puma -p ${PORT:-3001} -e development | |
- | | |
title UHF; | |
color blue; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title UHF; | |
color blue; | |
npm run watch | |
- | | |
title UHF; | |
color blue | |
- | |
root: "~/Code/Nuvi/smithers" | |
layout: | |
- | |
- | | |
title Smithers; | |
color orange; | |
PORT=3004 bundle exec puma -C config/puma.rb | |
- | | |
title Smithers; | |
color orange; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title Smithers; | |
color orange; | |
npm run watch | |
- | | |
title Smithers; | |
color orange | |
- | |
root: "~/Code/Nuvi/zuul" | |
layout: | |
- | |
- | | |
title Zuul; | |
color charcoal; | |
bundle exec puma -p 5000 -C ./config/puma.rb | |
- | |
- | | |
title Zuul; | |
color charcoal; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml -c ${SIDEKIQ_THREADS:-2} | |
- | |
- | | |
title Zuul; | |
color charcoal | |
all: | |
root: "~/Code/Nuvi" | |
layout: | |
- | |
- | | |
title Gutenberg; | |
color green; | |
PORT=3003 bundle exec puma -C config/puma.rb | |
- | | |
title Gutenberg; | |
color green; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title Gutenberg; | |
color green; | |
npm run watch | |
- | | |
title Gutenberg; | |
color green | |
- | |
- | | |
title UHF; | |
color blue; | |
bundle exec rails server puma -p ${PORT:-3001} -e development | |
- | | |
title UHF; | |
color blue; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title UHF; | |
color blue; | |
npm run watch | |
- | | |
title UHF; | |
color blue | |
- | |
- | | |
title Smithers; | |
color orange; | |
PORT=3004 bundle exec puma -C config/puma.rb | |
- | | |
title Smithers; | |
color orange; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title Smithers; | |
color orange; | |
npm run watch | |
- | | |
title Smithers; | |
color orange | |
- | |
- | | |
title Zuul; | |
color charcoal; | |
bundle exec puma -p 5000 -C ./config/puma.rb | |
- | |
- | | |
title Zuul; | |
color charcoal; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml -c ${SIDEKIQ_THREADS:-2} | |
- | |
- | | |
title Zuul; | |
color charcoal | |
gutenberg: | |
root: "~/Code/Nuvi/gutenberg" | |
layout: | |
- | |
- | | |
title Gutenberg; | |
color green; | |
PORT=3003 bundle exec puma -C config/puma.rb | |
- | | |
title Gutenberg; | |
color green; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title Gutenberg; | |
color green; | |
npm run watch | |
- | | |
title Gutenberg; | |
color green | |
uhf: | |
root: "~/Code/Nuvi/uhf" | |
layout: | |
- | |
- | | |
title UHF; | |
color blue; | |
bundle exec rails server puma -p ${PORT:-3001} -e development | |
- | | |
title UHF; | |
color blue; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title UHF; | |
color blue; | |
npm run watch | |
- | | |
title UHF; | |
color blue | |
zuul: | |
root: "~/Code/Nuvi/zuul" | |
layout: | |
- | |
- | | |
title Zuul; | |
color charcoal; | |
bundle exec puma -p 5000 -C ./config/puma.rb | |
- | |
- | | |
title Zuul; | |
color charcoal; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml -c ${SIDEKIQ_THREADS:-2} | |
- | |
- | | |
title Zuul; | |
color charcoal | |
smithers: | |
root: "~/Code/Nuvi/smithers" | |
layout: | |
- | |
- | | |
title Smithers; | |
color orange; | |
PORT=3004 bundle exec puma -C config/puma.rb | |
- | | |
title Smithers; | |
color orange; | |
bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml | |
- | |
- | | |
title Smithers; | |
color orange; | |
npm run watch | |
- | | |
title Smithers; | |
color orange |
This file contains hidden or 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
# Colors for iTerm | |
function color { | |
case $1 in | |
green) | |
echo -e "\033]6;1;bg;red;brightness;188\a" | |
echo -e "\033]6;1;bg;green;brightness;226\a" | |
echo -e "\033]6;1;bg;blue;brightness;158\a" | |
;; | |
red) | |
echo -e "\033]6;1;bg;red;brightness;112\a" | |
echo -e "\033]6;1;bg;green;brightness;15\a" | |
echo -e "\033]6;1;bg;blue;brightness;0\a" | |
;; | |
orange) | |
echo -e "\033]6;1;bg;red;brightness;255\a" | |
echo -e "\033]6;1;bg;green;brightness;191\a" | |
echo -e "\033]6;1;bg;blue;brightness;77\a" | |
;; | |
blue) | |
echo -e "\033]6;1;bg;red;brightness;0\a" | |
echo -e "\033]6;1;bg;green;brightness;209\a" | |
echo -e "\033]6;1;bg;blue;brightness;251\a" | |
;; | |
purple) | |
echo -e "\033]6;1;bg;red;brightness;234\a" | |
echo -e "\033]6;1;bg;green;brightness;168\a" | |
echo -e "\033]6;1;bg;blue;brightness;255\a" | |
;; | |
charcoal) | |
echo -e "\033]6;1;bg;red;brightness;48\a" | |
echo -e "\033]6;1;bg;green;brightness;48\a" | |
echo -e "\033]6;1;bg;blue;brightness;48\a" | |
;; | |
esac | |
} | |
# Tab Title for iTerm | |
function title { | |
echo -ne "\033]0;"$*"\007" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment