mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 11:51:50 +08:00
Compare commits
No commits in common. "19f3be856d581fb72cf5b9152a6234efae3870a5" and "d59f4cc7b705d42b7f5549c58fb0ab1adcb01e7a" have entirely different histories.
19f3be856d
...
d59f4cc7b7
20
.zshrc
20
.zshrc
@ -62,12 +62,19 @@ autoload edit-command-line
|
||||
zle -N edit-command-line
|
||||
bindkey '' edit-command-line
|
||||
|
||||
export _Z_DATA="$HOME/.cache/z"
|
||||
. $HOME/.cache/z.sh
|
||||
zz () {
|
||||
cd `z -l $* | fzf | awk '{print $2}'`
|
||||
}
|
||||
alias zc="z -c"
|
||||
#TheFuck plugin
|
||||
fuck_cache="$HOME/.cache/thefuck"
|
||||
test -f $fuck_cache || thefuck --alias pls >| "$fuck_cache"
|
||||
source "$fuck_cache"
|
||||
unset fuck_cache
|
||||
|
||||
#source fasd_cache for 40 ms quicker start.
|
||||
fasd_cache="$HOME/.cache/fasd_cache"
|
||||
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
|
||||
fasd --init zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install posix-alias posix-hook >| "$fasd_cache"
|
||||
fi
|
||||
source "$fasd_cache"
|
||||
unset fasd_cache
|
||||
|
||||
#use lf to change dirs. credit: luke
|
||||
lfcd () {
|
||||
@ -113,7 +120,6 @@ export LESS="-RSM~"
|
||||
#local path
|
||||
export PATH="${PATH}:${HOME}/.local/bin/"
|
||||
export PATH="${PATH}:${HOME}/.scripts/"
|
||||
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
||||
|
||||
#ccache support
|
||||
export USE_CCACHE=1
|
||||
|
Loading…
Reference in New Issue
Block a user