summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-08-13 14:31:44 +0200
committerUrbain Vaes <urbain@vaes.uk>2018-08-13 14:31:44 +0200
commit1e8ec5104058f5cbb15728f68cd9e6a71892978e (patch)
treea33869636a193ff1bdedc16e9e338fec2350cbda /zsh
parentf63613682351ec610ffd8eab247aaa4a7dabe538 (diff)
parent48f25f5db532059be55469da89fcfaa068a0e2d5 (diff)
Merge branch 'master' of urbainvaes.com:public/dotfiles
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~ $ '