Add shell integration for iterm2

This commit is contained in:
2021-02-28 00:58:12 +00:00
parent a73901c194
commit 4d8bee5fd8
2 changed files with 642 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ fi
export TZ=GB
export LANG=en_GB.UTF-8
# Make a sensible editor choice
if [ -x /usr/bin/nano ]; then
export EDITOR=nano
export VISUAL=nano
@@ -22,6 +23,10 @@ if [ $(uname) == "Darwin" ]; then
# Shhh Catlina, we don't care!
export BASH_SILENCE_DEPRECATION_WARNING=1
if [ "${TERM_PROGRAM}" == "iTerm.app" ]; then
source ~/.bash/iterm2_integration.bash
fi
# M1 specific hacks
if [ $(uname -p) == "arm" ]; then
# Stop golang progs having fun with Rosetta 2 (https://yaleman.org/post/2021/2021-01-01-apple-m1-terraform-and-golang/)