-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
34 lines (30 loc) · 946 Bytes
/
dot_zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
alias e="$EDITOR"
alias ew="$VISUAL"
alias zshconfig="e ~/.zshrc"
alias swayconf="e ~/.config/sway/config"
alias l="exa -lagh --group-directories-first"
alias ls="exa"
alias vim="nvim"
alias kcd='kubectl config set-context $(kubectl config current-context) --namespace '
alias snip="slurp | xargs -I {} grim -g {}"
# One-line prompt
export AGKOZAK_MULTILINE=0
export AGKOZAK_PROMPT_CHAR=( ❯ ❯ ❮ )
# Fixes line before prompt
unsetopt PROMPT_SP
# emacs key binding
bindkey -e
bindkey "^[[3~" delete-char
bindkey '^[[1;5D' backward-word
bindkey '^[[1;5C' forward-word
if type "antibody" > /dev/null; then
if [[ ! -f ~/.zsh_plugins.sh && -f ~/.zsh_plugins.txt ]]; then
echo "Creating .zsh_plugins.sh"
antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh
fi
source ~/.zsh_plugins.sh
else
echo "Antibody is not installed."
fi
# Regex history search
bindkey '^R' history-incremental-pattern-search-backward