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

4
.zshrc
View File

@ -31,12 +31,16 @@ export XDG_CACHE_HOME="$HOME/.cache"
# Oh my zsh stuff # Oh my zsh stuff
# powerline instant promt
if [ -z $SSH_CONNECTION ]; then
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n] # Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below. # 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 if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" 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"
export HISTFILE="$XDG_CACHE_HOME/zsh_history" export HISTFILE="$XDG_CACHE_HOME/zsh_history"