Commit fa0bb847 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fixes to term-startup.sh

These fixes are for platforms with non-standard locations for tools
like tmux and bash which need .profile to be sourced to fix.

i.e. Mac
parent eeb23ff9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
#!/bin/bash
#!/usr/bin/env bash
set -eu
shopt -s extglob lastpipe

. ~/.shell/lib/shared.sh
. ~/.profile

declare -r CODE_HIGHLIGHT=$(tput setab 15; tput setaf 16)
declare -r CODE_RESET=$(tput sgr0)
@@ -131,7 +132,6 @@ process_esc_seq() {

has_client() {
	tmux list-clients -F '#{client_termname}' | while read termname; do
		echo "$termname $TERM"
		if [[ $termname == $TERM ]]; then
			return 0
		fi