config-files/zsh/.zshrc

37 lines
1.0 KiB
Bash

#!/bin/zsh
# .zshrc
# 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
# Source '~/.local/share/zap/zap.zsh' if it exists
# Legge il file di configurazione del plugin manager Zap, se presente
if [ -f "$HOME/.local/share/zap/zap.zsh" ]; then
source "$HOME/.local/share/zap/zap.zsh"
fi
# History
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=2000
# Export some variables
export EDITOR="kate"
export TERMINAL="konsole"
export BROWSER="firefox"
# Alias definitions
if [ -f "$HOME/.zsh_aliases" ]; then
source "$HOME/.zsh_aliases"
fi
# Plugins (Zap plugin manager)
plug "romkatv/powerlevel10k"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh