Commit 91cbb212 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Do not attempt to start a tmux session on login if one is available

parent ceeab9aa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -94,7 +94,9 @@ fi
start_client() {
	[ $# -eq 1 ] || bad_arg "start-client takes no arguments"
	[ -z "$TMUX" ] || die "this command must be run from outside of tmux"
	launch tmux start-server  # no-op if already started
	if ! tmux has-session; then
		launch tmux start-server
	fi
	set_var DISPLAY "$DISPLAY"
	tmux attach-session; code=$?
	unset_var DISPLAY