added ssh if for instant promt in zsh

This commit is contained in:
Niklas 2020-06-12 17:41:36 +02:00
parent fc5a69353b
commit c3024abf22

14
.zshrc
View File

@ -31,11 +31,15 @@ export XDG_CACHE_HOME="$HOME/.cache"
# Oh my zsh stuff # Oh my zsh stuff
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # powerline instant promt
# Initialization code that may require console input (password prompts, [y/n] if [ -z $SSH_CONNECTION ]; then
# 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 # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" # 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 fi
export ZSH="/usr/share/oh-my-zsh" export ZSH="/usr/share/oh-my-zsh"