projects
/
~bandali
/
configs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates
[~bandali/configs]
/
zsh
/
.zshrc
diff --git
a/zsh/.zshrc
b/zsh/.zshrc
index
635bffb
..
4de08ab
100644
(file)
--- a/
zsh/.zshrc
+++ b/
zsh/.zshrc
@@
-1,9
+1,12
@@
# Bash-like navigation
#export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
# Bash-like navigation
#export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
-export WORDCHARS='*?[]~=&;!#$%^(){}<>'
+export WORDCHARS='*?
-
[]~=&;!#$%^(){}<>'
fpath+=~/.zfunc
fpath+=~/.zfunc
+disable -r time # disable shell reserved word
+alias time='time -p' # -p for POSIX output
+
# rehash if last command was pacaur or pacman
# (so that zsh picks up changes in $PATH immediately)
TRAPUSR1() { rehash}; precmd() { [[ $history[$[ HISTCMD -1 ]] == *(pacaur|pacman)* ]] && killall -USR1 zsh }
# rehash if last command was pacaur or pacman
# (so that zsh picks up changes in $PATH immediately)
TRAPUSR1() { rehash}; precmd() { [[ $history[$[ HISTCMD -1 ]] == *(pacaur|pacman)* ]] && killall -USR1 zsh }
@@
-24,3
+27,13
@@
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
#ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold'
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
#ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold'
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
+source ~/.zsh/zsh-autopair/autopair.zsh
+
+# aliases
+alias mpv="mpv --ytdl-format mp4"
+alias mv="mv -iv"
+alias cp="cp -iv"
+alias scl=systemctl
+alias jcl=journalctl
+alias m="mbsync -Va; getmail; notmuch new"
+alias best="youtube-dl -f best"