From 4e7b4215cf4bd53cc433c83ab8eb84230ca34ae7 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 11 Aug 2018 12:05:25 +0100 Subject: Fix bug with startx in ssh --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index f4c12f0..0a364b8 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,5 +1,5 @@ ## startx automatically {{{ -[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx +[[ -z $DISPLAY && -z $SSH_CONNECTION && $XDG_VTNR -eq 1 ]] && exec startx # }}} ## Bindings {{{ bindkey -v -- cgit v1.2.3 From 48f25f5db532059be55469da89fcfaa068a0e2d5 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 11 Aug 2018 15:27:32 +0100 Subject: Make sure ssh is detected in tmux --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 0a364b8..3a61957 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -41,7 +41,7 @@ autoload -U select-word-style select-word-style bash # Prompt -if [[ -n $SSH_CLIENT ]]; then +if [[ -n $SSH_CONNECTION ]]; then PROMPT='%F{red}[%M]%f %0~ $ ' else PROMPT='%0~ $ ' -- cgit v1.2.3