-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtools
More file actions
81 lines (69 loc) · 2.38 KB
/
tools
File metadata and controls
81 lines (69 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
if [ -z "${ZSH_VIA_NIX:-}" ] && command -v broot >/dev/null; then
source "${HOME}/.config/broot/launcher/bash/br"
fi
if [ -z "${ZSH_VIA_NIX:-}" ]; then
if command -v fzf >/dev/null; then
if zvm_available; then
zvm_after_init_commands+=(
# system-wide install
'[ -f /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh'
'[ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh'
# nix install
'command -v fzf-share >/dev/null && source "$(fzf-share)/completion.zsh" && source "$(fzf-share)/key-bindings.zsh"'
)
else
# system-wide install
[ -f /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh
[ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh
# nix install
command -v fzf-share >/dev/null && source "$(fzf-share)/completion.zsh" && source "$(fzf-share)/key-bindings.zsh"
fi
fi
fi
if [ -f /opt/textidote/textidote.zsh ]; then
source /opt/textidote/textidote.zsh
fi
if [ -f /opt/google-cloud-cli/completion.zsh.inc ]; then
source /opt/google-cloud-cli/completion.zsh.inc
fi
if [ -f /opt/google-cloud-cli/path.zsh.inc ]; then
source /opt/google-cloud-cli/path.zsh.inc
fi
if command -v ugrep >/dev/null && [ -n "${NO_UGREP:-x}" ]; then
alias grep='ugrep -G'
alias egrep='ugrep -E'
alias fgrep='ugrep -F'
# alias pgrep='ugrep -P'
alias xgrep='ugrep -U --hexdump'
alias zgrep='ugrep -zG'
alias zegrep='ugrep -zE'
alias zfgrep='ugrep -zF'
alias zpgrep='ugrep -zP'
alias zxgrep='ugrep -zU --hexdump'
alias xdump='ugrep -X ""'
fi
if command -v ug >/dev/null && [ -n "${NO_UGREP:-x}" ]; then
alias uq='ug -Q'
alias ux='ug -U --hexdump'
alias uz='ug -z'
alias ugit='ug --ignore-files'
fi
if command -v batpipe >/dev/null; then
eval "$(batpipe)"
fi
if [ -f /etc/profile.d/prll.sh ]; then
source /etc/profile.d/prll.sh
fi
if command -v zoxide >/dev/null; then
eval "$(zoxide init zsh)"
fi
if [ -z "${ZSH_VIA_NIX:-}" ] && command -v carapace >/dev/null; then
# exlusions
# * own gh completions
# * python completion does not complete files anymore
source <(carapace _carapace zsh \
| sed -e "s: gh::" \
| sed -e "s: python::" \
)
fi
# vim: ft=zsh