2 #export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
3 #export WORDCHARS='*?-[]~=&;!#$%^(){}<>'
4 export WORDCHARS='*?[]~=&;!#$%^(){}<>'
6 #disable -r time # disable shell reserved word
7 #alias time='time -p' # -p for POSIX output
9 # rehash if last command was pacaur or pacman
10 # (so that zsh picks up changes in $PATH immediately)
11 TRAPUSR1() { rehash}; precmd() { [[ $history[$[ HISTCMD -1 ]] == *(pacaur|pacman)* ]] && killall -USR1 zsh }
14 # User configuration sourced by interactive shells
17 # Change default zim location
18 export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
21 [[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
23 ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
24 #ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold'
28 source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
29 source ~/.zsh/zsh-autopair/autopair.zsh
34 source /usr/share/fzf/key-bindings.zsh
35 source /usr/share/fzf/completion.zsh
37 # Accept history selection instead of putting it on
39 fzf-history-widget-accept() {
43 #zle -N fzf-history-widget-accept
44 #bindkey '^R' fzf-history-widget-accept
47 export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
53 alias mpv="mpv --ytdl-format mp4"
58 alias m="mbsync -Va; getmail; notmuch new"
59 alias best="youtube-dl -f best"
60 alias nix="ssh amin@aminb.org"
64 alias psyu="pacaur -Syu"
69 git clone https://aur.archlinux.org/${1}.git