dotfiles/.zshrc

62 lines
1.8 KiB
Bash
Raw Normal View History

2021-07-10 16:54:45 +02:00
# 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
2021-04-02 19:06:33 +02:00
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
2021-04-16 12:04:30 +02:00
export ZSH="$HOME/.oh-my-zsh"
2021-04-02 19:06:33 +02:00
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
2021-07-10 16:54:45 +02:00
ZSH_THEME="powerlevel10k/powerlevel10k"
2021-04-02 19:06:33 +02:00
2021-07-12 17:19:32 +02:00
# Path to powerlevel10k config file Ref.: https://github.com/romkatv/powerlevel10k/issues/967#issuecomment-678133333
POWERLEVEL9K_CONFIG_FILE="$HOME/.config/p10k/config.zsh"
2021-04-02 19:06:33 +02:00
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true
COMPLETION_WAITING_DOTS="true"
2021-10-30 11:20:10 +02:00
DISABLE_UNTRACKED_FILES_DIRTY="true"
2021-04-02 19:06:33 +02:00
HIST_STAMPS="dd.mm.yyyy"
# Would you like to use another custom folder than $ZSH/custom?
2021-04-16 12:04:30 +02:00
ZSH_CUSTOM="$HOME/.config/oh-my-zsh"
2021-04-02 19:06:33 +02:00
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
plugins=(
git
ansible
extract
history
pass
sudo
)
source $ZSH/oh-my-zsh.sh
2021-10-30 11:20:10 +02:00
### User configuration
# Set TERM for with or without TMUX
# http://www.economyofeffort.com/2014/07/04/zsh/
export TERM=xterm-256color
[ -n "$TMUX" ] && export TERM=screen-256color
2021-12-16 15:49:35 +01:00
# share history between terminals in zsh
# https://askubuntu.com/questions/23630/how-do-you-share-history-between-terminals-in-zsh
setopt inc_append_history
2021-10-30 11:20:10 +02:00
setopt completealiases
2021-04-02 19:06:33 +02:00
prompt_context(){}
2021-07-10 16:54:45 +02:00
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
2021-07-12 17:19:32 +02:00
[[ ! -f "$POWERLEVEL9K_CONFIG_FILE" ]] || source "$POWERLEVEL9K_CONFIG_FILE"