mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 11:51:50 +08:00
Compare commits
2 Commits
d59f4cc7b7
...
19f3be856d
Author | SHA1 | Date | |
---|---|---|---|
|
19f3be856d | ||
|
cef516a84e |
20
.zshrc
20
.zshrc
@ -62,19 +62,12 @@ autoload edit-command-line
|
|||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey '' edit-command-line
|
bindkey '' edit-command-line
|
||||||
|
|
||||||
#TheFuck plugin
|
export _Z_DATA="$HOME/.cache/z"
|
||||||
fuck_cache="$HOME/.cache/thefuck"
|
. $HOME/.cache/z.sh
|
||||||
test -f $fuck_cache || thefuck --alias pls >| "$fuck_cache"
|
zz () {
|
||||||
source "$fuck_cache"
|
cd `z -l $* | fzf | awk '{print $2}'`
|
||||||
unset fuck_cache
|
}
|
||||||
|
alias zc="z -c"
|
||||||
#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
|
#use lf to change dirs. credit: luke
|
||||||
lfcd () {
|
lfcd () {
|
||||||
@ -120,6 +113,7 @@ export LESS="-RSM~"
|
|||||||
#local path
|
#local path
|
||||||
export PATH="${PATH}:${HOME}/.local/bin/"
|
export PATH="${PATH}:${HOME}/.local/bin/"
|
||||||
export PATH="${PATH}:${HOME}/.scripts/"
|
export PATH="${PATH}:${HOME}/.scripts/"
|
||||||
|
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
||||||
|
|
||||||
#ccache support
|
#ccache support
|
||||||
export USE_CCACHE=1
|
export USE_CCACHE=1
|
||||||
|
Loading…
Reference in New Issue
Block a user