-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zimrc##template
100 lines (92 loc) · 3.62 KB
/
.zimrc##template
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Start configuration added by Zim install {{{
#
# This is not sourced during shell startup, and it's only used to configure the
# zimfw plugin manager.
#
#
# Modules
#
zmodule joke/zim-mise
# Sets sane Zsh built-in environment options.
zmodule environment
# Applies correct bindkeys for input events.
zmodule input
# Sets a custom terminal title.
zmodule termtitle
# Utility aliases and functions. Adds colour to ls, grep and less.
zmodule utility
# Provides a convenient way to load ssh-agent. This enables one-time login and caching of ssh credentials per session.
zmodule ssh
zmodule romkatv/powerlevel10k --use degit
# zmodule spaceship-prompt/spaceship-prompt --name spaceship --no-submodules
# ohmyzsh stuff
# other omz plugins may need omz functions. It does
# conflict with mkcd from zimfw, but they both essentially
# do the same thing.
zmodule ohmyzsh/ohmyzsh --root lib --source functions.zsh
zmodule ohmyzsh/ohmyzsh --root lib --source clipboard.zsh
#zmodule ohmyzsh/ohmyzsh --root plugins/vi-mode # This breaks repeating x on CLI
zmodule ohmyzsh/ohmyzsh --root plugins/command-not-found
# zmodule ohmyzsh/ohmyzsh --root plugins/gem
zmodule ohmyzsh/ohmyzsh --root plugins/history
zmodule ohmyzsh/ohmyzsh --root plugins/extract
zmodule ohmyzsh/ohmyzsh --root plugins/aliases
zmodule ohmyzsh/ohmyzsh --root plugins/copyfile
zmodule ohmyzsh/ohmyzsh --root plugins/copypath
zmodule ohmyzsh/ohmyzsh --root plugins/genpass
zmodule ohmyzsh/ohmyzsh --root plugins/isodate
zmodule ohmyzsh/ohmyzsh --root plugins/jsontools
zmodule ohmyzsh/ohmyzsh --root plugins/pyenv
zmodule ohmyzsh/ohmyzsh --root plugins/systemadmin
zmodule ohmyzsh/ohmyzsh --root plugins/urltools
zmodule ohmyzsh/ohmyzsh --root plugins/web-search
zmodule ohmyzsh/ohmyzsh --root plugins/sudo
zmodule ohmyzsh/ohmyzsh --root plugins/httpie
{% if yadm.os == "Darwin" %}
zmodule ohmyzsh/ohmyzsh --root plugins/macos
zmodule ohmyzsh/ohmyzsh --root plugins/gnu-utils
zmodule ohmyzsh/ohmyzsh --root plugins/brew
{% else %}
zmodule ohmyzsh/ohmyzsh --root plugins/systemd
{% endif %}
zmodule hlissner/zsh-autopair
# These just load completions
zmodule joke/zim-github-cli
zmodule joke/zim-kubectl
zmodule joke/zim-helm
# zmodule joke/zim-starship
# https://github.com/MichaelAquilina/zsh-you-should-use/blob/master/README.rst
zmodule MichaelAquilina/zsh-you-should-use --source you-should-use.plugin.zsh
# https://github.com/junegunn/fzf-git.sh/blob/main/README.md
zmodule junegunn/fzf-git.sh --source fzf-git.sh
#
# Completion
#
# Additional completion definitions for Zsh.
zmodule zsh-users/zsh-completions --fpath src
# Enables and configures smart and extensive tab completion.
# completion must be sourced after all modules that add completion definitions.
zmodule completion
# modules that need to use compdef or something and so have to come after completion
zmodule ohmyzsh/ohmyzsh --root plugins/aws
zmodule ohmyzsh/ohmyzsh --root plugins/git
zmodule ohmyzsh/ohmyzsh --root plugins/kitty
zmodule ohmyzsh/ohmyzsh --root plugins/terraform
{% if yadm.distro == "Ubuntu" %}
zmodule ohmyzsh/ohmyzsh --root plugins/ubuntu
{% endif %}
{% if yadm.distro == "Linuxmint" %}
zmodule ohmyzsh/ohmyzsh --root plugins/ubuntu
{% endif %}
#
# Modules that must be initialized last
#
# Fish-like syntax highlighting for Zsh.
# zsh-users/zsh-syntax-highlighting must be sourced after completion
zmodule zsh-users/zsh-syntax-highlighting
# Fish-like history search (up arrow) for Zsh.
# zsh-users/zsh-history-substring-search must be sourced after zsh-users/zsh-syntax-highlighting
zmodule zsh-users/zsh-history-substring-search
# Fish-like autosuggestions for Zsh.
zmodule zsh-users/zsh-autosuggestions
# }}} End configuration added by Zim install