summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index f4c12f0..3a61957 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
@@ -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~ $ '