From c3024abf22f8fca3989a3c55d3591ebb4b8dafac Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 12 Jun 2020 17:41:36 +0200 Subject: [PATCH] added ssh if for instant promt in zsh --- .zshrc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index 3314580..b2e5af5 100644 --- a/.zshrc +++ b/.zshrc @@ -31,11 +31,15 @@ export XDG_CACHE_HOME="$HOME/.cache" # Oh my zsh stuff -# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. -# Initialization code that may require console input (password prompts, [y/n] -# confirmations, etc.) must go above this block; everything else may go below. -if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then - source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +# powerline instant promt +if [ -z $SSH_CONNECTION ]; then + + # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. + # Initialization code that may require console input (password prompts, [y/n] + # confirmations, etc.) must go above this block; everything else may go below. + if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" + fi fi export ZSH="/usr/share/oh-my-zsh"