dotfiles/.zshrc

34 lines
1.2 KiB
Bash
Raw Normal View History

2023-03-24 19:00:53 +01: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
2020-01-03 12:24:46 +01:00
export ZSH="$HOME/.oh-my-zsh"
2023-03-24 19:00:53 +01:00
ZSH_THEME="powerlevel10k/powerlevel10k"
CASE_SENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="dd.mm.yyyy"
2021-12-21 14:49:56 +01:00
plugins=(git symfony)
2019-11-11 04:48:47 +01:00
source $ZSH/oh-my-zsh.sh
export MANPATH="/usr/local/man:$MANPATH"
2022-06-28 16:48:16 +02:00
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
2019-12-17 23:59:35 +01:00
setopt auto_cd
2021-12-21 14:49:56 +01:00
alias l="lsd -ltr"
2020-07-27 23:59:14 +02:00
alias lr="lsd -ltr"
alias ll="lsd -la"
2022-07-08 13:22:55 +02:00
alias sc="symfony console"
2020-01-03 12:23:17 +01:00
setopt PROMPT_SUBST
export PROMPT='$(cdbm -add)'$PROMPT
function c() { dir=$(cdbm 3>&1 1>&2 2>&3); cd $dir; }
2020-01-04 16:53:21 +01:00
function pb() { echo "$1" | nc pastebin.24unix.net 9999 }
2023-03-24 19:00:53 +01:00
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh