From: Iain Patterson Date: Mon, 14 Feb 2011 11:28:28 +0000 (+0000) Subject: Fix tmux session alias and remove site-specific stuff. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=c25605e0b426401518ee7e8bbf8db107a741bd8d;p=profile.git Fix tmux session alias and remove site-specific stuff. The session alias should be defined when tmux is found but the last change introduced a logic flaw whereby it instead gets defined when krenew is found. Some site-specific stuff (/comm/tmux) shouldn't have found its way into master. --- diff --git a/.profile.d/tmux.bashrc b/.profile.d/tmux.bashrc index b5ac757..abbbff7 100644 --- a/.profile.d/tmux.bashrc +++ b/.profile.d/tmux.bashrc @@ -1,7 +1,7 @@ # profile-requires: screen.bashrc # XXX: Use a module. -tmux=$(PATH=$PATH:/comm/tmux/stable/bin find_working tmux 2>/dev/null) -krenew=$(PATH=$PATH:/comm/kstart/stable/bin find_working krenew 2>/dev/null) +krenew=$(find_working krenew 2>/dev/null) +tmux=$(find_working tmux 2>/dev/null) if [ $? = 0 ]; then alias session="bigtmux $tmux has -t session 2>/dev/null && tmux attach -t session || ktmux -R $krenew -T $tmux -s session" if [ -n "$TMUX" ]; then