70 lines
2.1 KiB
Bash
70 lines
2.1 KiB
Bash
# 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
|
|
|
|
# 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.
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
|
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
|
|
# Path to powerlevel10k config file Ref.: https://github.com/romkatv/powerlevel10k/issues/967#issuecomment-678133333
|
|
POWERLEVEL9K_CONFIG_FILE="$HOME/.config/p10k/config.zsh"
|
|
|
|
# Uncomment the following line if pasting URLs and other text is messed up.
|
|
# DISABLE_MAGIC_FUNCTIONS=true
|
|
|
|
COMPLETION_WAITING_DOTS="true"
|
|
|
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
|
|
HIST_STAMPS="dd.mm.yyyy"
|
|
|
|
# Would you like to use another custom folder than $ZSH/custom?
|
|
ZSH_CUSTOM="$HOME/.config/oh-my-zsh"
|
|
|
|
# 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
|
|
|
|
### User configuration
|
|
|
|
### PATH
|
|
if [ -d "$HOME/.bin" ] ;
|
|
then PATH="$HOME/.bin:$PATH"
|
|
fi
|
|
|
|
# You may need to manually set your language environment
|
|
# export LANG=en_US.UTF-8
|
|
export EDITOR=/usr/bin/nvim
|
|
export VISUAL=/usr/bin/nvim
|
|
export HISTORY_IGNORE="(ls|cd|pwd|exit|history|cd -|cd ..)"
|
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
|
### Start Wayland specific stuff
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
##! Use the following launch options for Steam Games which crash with this.
|
|
##> 'SDL_VIDEODRIVER=x11 %command%'
|
|
export SDL_VIDEODRIVER='wayland'
|
|
### End Wayland specific stuff
|
|
|
|
setopt completealiases
|
|
|
|
prompt_context(){}
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
[[ ! -f "$POWERLEVEL9K_CONFIG_FILE" ]] || source "$POWERLEVEL9K_CONFIG_FILE"
|