-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
94 lines (71 loc) · 2.32 KB
/
.zshrc
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
if [ "$TMUX" = "" ]; then tmux; fi
export DISABLE_FZF_KEY_BINDINGS="false"
export FZF_DEFAULT_OPTS='--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4'
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="dracula"
plugins=(
fzf
fzf-tab
git
zsh-autosuggestions
zsh-completions
zsh-syntax-highlighting
zsh-vi-mode
)
source $ZSH/oh-my-zsh.sh
# export TERM=screen-256color
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:$HOME/Library/Python/3.9/bin"
export EDITOR=nvim
export VISUAL=nvim
export TZ='Europe/Athens'
export WSL_DISTRO_NAME="Ubuntu"
export BAT_THEME="Dracula"
setopt HIST_IGNORE_ALL_DUPS
unsetopt beep
if [[ $(command -v nvim) ]];
then
alias v="nvim"
alias vi="nvim"
alias vim="nvim"
fi
if [[ $(command -v tail) ]];
then
alias s="tail -r ~/snippets.txt | fzf --border --layout=reverse --prompt='Search for a command to copy into the clipboard: ' | clipcopy"
fi
if [[ $(command -v tac) ]];
then
alias s="tac ~/snippets.txt | fzf --border --layout=reverse --prompt='Search for a command to copy into the clipboard: ' | clipcopy"
fi
alias e="vim ~/snippets.txt"
alias k="kubectl"
alias h="helm"
if [[ $(command -v bat) ]];
then
alias cat="bat"
fi
alias github="~/github.sh"
alias repos='cd $(find ~/repos -depth 1 -type d | fzf)'
alias ls="ls -altrh --color=auto"
alias tf="terraform"
alias tg="terragrunt"
alias assume="source /usr/local/bin/assume"
eval "$(starship init zsh)"
[[ $commands[kubectl] ]] && source <(kubectl completion zsh)
export KEYTIMEOUT=1
autoload -U +X bashcompinit && bashcompinit
autoload -Uz compinit && compinit
complete -o nospace -C /usr/bin/terraform terraform
complete -o nospace -C /usr/bin/terragrunt terragrunt
complete -C '$HOME/.local/bin/aws_completer' aws
if [[ -e /etc/bash_completion.d/azure-cli ]];
then
source /etc/bash_completion.d/azure-cli
fi
source <(helm completion zsh)
source ~/set-tmux-title.sh
zstyle -e ':completion:*:hosts' hosts 'reply=(
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
)'
zstyle ':completion:*:ssh:argument-1:*' tag-order hosts
zvm_after_init_commands+=('[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh && enable-fzf-tab')