dotfiles/.zshrc

35 lines
1.2 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
export ZSH_DISABLE_COMPFIX=true
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
CASE_SENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="dd.mm.yyyy"
plugins=(git symfony)
source $ZSH/oh-my-zsh.sh
export MANPATH="/usr/local/man:$MANPATH"
export LANG=en_GB.UTF-8
export LC_CTYPE=en_GB.UTF-8
export LC_ALL=en_GB.UTF-8
export EDITOR='vim'
bindkey "^[^[[D" backward-word
bindkey "^[^[[C" forward-word
setopt auto_cd
alias l="lsd -ltr"
alias lr="lsd -ltr"
alias ll="lsd -la"
alias sc="symfony console"
setopt PROMPT_SUBST
export PROMPT='$(cdbm -add)'$PROMPT
function c() { dir=$(cdbm 3>&1 1>&2 2>&3); cd $dir; }
function pb() { echo "$1" | nc pastebin.24unix.net 9999 }
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh