Generic updates
[~bandali/configs] / zsh / .zshrc
CommitLineData
855ca243
AB
1# Bash-like navigation
2#export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
378dacde 3export WORDCHARS='*?-[]~=&;!#$%^(){}<>'
855ca243
AB
4
5fpath+=~/.zfunc
6
8b2a2e9c
AB
7disable -r time # disable shell reserved word
8alias time='time -p' # -p for POSIX output
9
855ca243
AB
10# rehash if last command was pacaur or pacman
11# (so that zsh picks up changes in $PATH immediately)
12TRAPUSR1() { rehash}; precmd() { [[ $history[$[ HISTCMD -1 ]] == *(pacaur|pacman)* ]] && killall -USR1 zsh }
13
14
15
16#
17# User configuration sourced by interactive shells
18#
19
20# Source zim
21if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then
22 source ${ZDOTDIR:-${HOME}}/.zim/init.zsh
23fi
24
25
26ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
27#ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold'
28
29source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
d0ef45b9
AB
30
31# aliases
32alias mpv="mpv --ytdl-format mp4"
33alias mv="mv -iv"
34alias cp="cp -iv"
378dacde
AB
35alias scl=systemctl
36alias jcl=journalctl
8b2a2e9c 37alias m="mbsync -Va; getmail; notmuch new"