added ssh if for instant promt in zsh
This commit is contained in:
parent
fc5a69353b
commit
c3024abf22
12
.zshrc
12
.zshrc
@ -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.
|
||||||
|
# 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"
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user