dotfiles/zsh/.zshrc

49 lines
1.2 KiB
Bash
Raw Normal View History

2022-03-12 21:38:58 +00: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"
2022-03-06 21:45:05 +00:00
fi
2022-03-12 21:38:58 +00:00
#USE_POWERLINE="true"
2022-03-06 21:45:05 +00:00
2022-03-12 21:38:58 +00:00
# aliases
2022-03-06 21:45:05 +00:00
alias cp="cp -i"
alias more="less"
alias weather="curl wttr.in"
2022-03-12 21:38:58 +00:00
alias ls="exa -lhg --group-directories-first"
alias ll="exa -lhga --group-directories-first"
2022-03-06 21:45:05 +00:00
2022-03-12 21:38:58 +00:00
# path
2022-03-08 07:52:59 +00:00
export PATH=/home/clint/.scripts/:$PATH
2022-03-12 21:38:58 +00:00
# default programs
2022-03-08 07:52:59 +00:00
export TERMINAL=alacritty
export BROWSER=firefox
2022-03-12 21:38:58 +00:00
# add some common key bindings
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "\e[3~" delete-char
# history
HISTFILE=~/.zhistory
setopt inc_append_history
setopt share_history
# auto complete
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
# start power theme
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
2022-03-06 21:45:05 +00:00
pfetch