Skip to content

Thomas Powell's blog

Ruby, Rails, SCJP 6, Java, C, C++, Pianist, Music Director

Tag Archives: preexec

Making Your zsh Return You to a Non-Production Setting

I have my prompt in zsh setup to display what Kubernetes context I am pointing to, so that I will notice if I’m somehow pointed at production environments, but I’m still wary of being asked to check things in production and then forgetting to point back to a “safe” environment before doing something else. So […]

Posted byThomasPowellJuly 24, 2018April 17, 2019Posted inshellTags: danger, hooks, precmd, preexec, production, zsh

Certifications

Support This Site

If you like what I do please support me on Ko-fi

Pages

  • About Thomas Powell
  • My Running Books
  • Pianist / Accompanist / Music Director Resume
  • Running Gear – Shoes, Treadmill, and Bandages
  • Site Map

Recent Posts

  • Reinstalling a Clean Copy of Mac OS X Yosemite
  • Reviews of M1 Macs for Development
  • How to Cancel Humble Choice
  • Fuji EnviroMAX AA vs. Sunbeam Batteries
  • Sylvania vs. Amazon Basics LED bulbs

Recent Comments

  • Monitoring your S3 buckets for #omgcat usage - Thomas Powell's blog on Hosting a static site on S3 with a purchased domain
  • Monitoring your CloudFront #omgcat usage - Thomas Powell's blog on Hosting a static site on S3 with a purchased domain
  • Adding a https to an S3 static site via CloudFront - Thomas Powell's blog on Hosting a static site on S3 with a purchased domain
  • Hooking in an LDAP Test Server to Cucumber Tests | Thomas Powell's blog on devise_ldap_authentication for your domain email on top of database_authenticatable
  • Principle of Least Surprise (Astonishment), foreign keys, and Rails | Thomas Powell's blog on foreigner foreign_key on a different column in source and target table.

Archives

  • January 2021
  • December 2020
  • September 2020
  • August 2020
  • July 2020
  • December 2019
  • July 2019
  • September 2018
  • July 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • July 2017
  • June 2017
  • April 2017
  • August 2016
  • April 2016
  • January 2016
  • December 2015
  • September 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • December 2013
  • November 2013
  • May 2013
  • April 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • June 2012
  • April 2012
  • February 2012
  • January 2012
  • November 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • August 2006
  • June 2006
  • May 2006
  • March 2006
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005

Categories

  • 100pushups
  • 2005
  • 50states
  • about
  • administration
  • articles
  • awk
  • aws
  • blogger
  • bookmarks
  • business
  • C#
  • calculators
  • calendar
  • charity
  • client software
  • computer science
  • countdown
  • cross training
  • daily learning
  • didiwiki
  • dos
  • enterprise
  • enterprise2.0
  • equipment
  • Essentials
  • Excel
  • fail
  • family
  • firefox
  • food/drink
  • free
  • gadgets
  • geek humor
  • goals
  • google
  • gutsy
  • Hardware
  • health
  • HelloWorld
  • howto
  • humor
  • i hate cycling
  • Industry
  • injury
  • java
  • javascript
  • jni
  • learning
  • linguistics
  • linux
  • lists
  • mac
  • malware
  • mapping
  • marathon
  • math
  • memberships
  • microblogging
  • Microsoft
  • miscellaneous
  • mobile
  • Mono
  • motivation
  • music
  • news
  • nostalgia
  • not fond of elliptical
  • now reading
  • nutrition
  • Office
  • other runners
  • personal
  • phone
  • php
  • posts
  • powershell
  • productivity
  • programming
  • race day
  • race report
  • rant
  • recovery
  • Rediscovering Unix
  • reflection
  • regex
  • registry
  • resolutions
  • review
  • ruby
  • running articles
  • Running for 10000
  • running threads
  • shameless plug
  • shell
  • soapbox
  • socialnetworking
  • Software
  • Software reviews
  • sql server
  • startup
  • stinkpad
  • strength
  • stretching
  • the internets
  • toread
  • training literature
  • training plan
  • travel
  • twitter
  • ubuntu
  • Uncategorized
  • unix
  • utilities
  • VBScript
  • vista
  • wanted
  • weather
  • web development
  • web server
  • web-general
  • web2.0
  • weight loss
  • windows
  • windows xp
  • wmic windows
  • word
  • workout commentary
  • xampp

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Thomas Powell's blog, Proudly powered by WordPress.