-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-install.sh
executable file
·41 lines (34 loc) · 2.1 KB
/
post-install.sh
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
#!/bin/zsh
# History
hist_folder="$XDG_CACHE_HOME/zsh"
if [[ ! -d $hist_folder ]]; then
mkdir -p $hist_folder
fi
# Completion
completion_folder="$XDG_DATA_HOME/zsh/completion"
if [[ ! -d $completion_folder ]]; then
mkdir -p $completion_folder
fi
script_folder="$XDG_DATA_HOME/zsh/script"
if [[ ! -d $script_folder ]]; then
mkdir -p $script_folder
fi
bat --completion zsh > "$completion_folder/_bat"
colima completion zsh > "$completion_folder/_colima"
dasel completion zsh >"$completion_folder/_dasel"
docker completion zsh > "$completion_folder/_docker"
# ghostty completion comes bundle up with the application
kubectl completion zsh > "$completion_folder/_kubectl"
rg --generate complete-zsh > "$completion_folder/_rg"
wezterm shell-completion --shell zsh > "$completion_folder/_wezterm"
curl -o "$completion_folder/_delta" https://raw.githubusercontent.com/dandavison/delta/refs/heads/main/etc/completion/completion.zsh
curl -o "$completion_folder/_eza" https://raw.githubusercontent.com/eza-community/eza/refs/heads/main/completions/zsh/_eza
curl -o "$completion_folder/_fd" https://raw.githubusercontent.com/sharkdp/fd/refs/heads/master/contrib/completion/_fd
curl -o "$completion_folder/_fzf" https://raw.githubusercontent.com/junegunn/fzf/refs/heads/master/shell/completion.zsh
curl -o "$completion_folder/_git" https://raw.githubusercontent.com/git/git/refs/heads/master/contrib/completion/git-completion.zsh
curl -o "$completion_folder/_home-manager" https://raw.githubusercontent.com/nix-community/home-manager/refs/heads/master/home-manager/completion.zsh
curl -o "$completion_folder/_hurl" https://raw.githubusercontent.com/Orange-OpenSource/hurl/refs/heads/master/completions/_hurl
curl -o "$completion_folder/_hurlfmt" https://raw.githubusercontent.com/Orange-OpenSource/hurl/refs/heads/master/completions/_hurlfmt
curl -o "$completion_folder/_zoxide" https://raw.githubusercontent.com/ajeetdsouza/zoxide/refs/heads/main/contrib/completions/_zoxide
curl -o "$script_folder/git-completion.bash" https://raw.githubusercontent.com/git/git/refs/heads/master/contrib/completion/git-completion.bash
autoload -U compinit && compinit