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