-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.zshrc
80 lines (60 loc) · 1.99 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
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# configure zsh history
HISTFILE="${HOME}/.histfile"
HISTSIZE=5000
SAVEHIST=5000
export TERM=alacritty
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
# fix ctrl+p, ctrl+n, ctrl+f and etc not work on tmux and others terminals
# https://superuser.com/questions/750965/tmux-printing-p
bindkey -e
fi
# fix ctrl+p, ctrl+n, ctrl+f and etc not work on tmux and others terminals
# https://superuser.com/questions/750965/tmux-printing-p
bindkey -e
# fix delete key
bindkey "\e[3~" delete-char
# disable INSERT
bindkey -s '\e[2~' ''
# ----------------------------------------
# Install zplug and zsh plugins
# zplug
[[ ! -f "${HOME}/.zplug/init.zsh" ]] || source "${HOME}/.zplug/init.zsh"
# Install zplug
zplug "zplug/zplug", hook-build:"zplug --self-manage"
# plguins from oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/asdf", from:oh-my-zsh
zplug "plugins/fzf", from:oh-my-zsh
zplug "plugins/virtualenvwrapper", from:oh-my-zsh
# install others plugs
zplug "zdharma-continuum/fast-syntax-highlighting"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-completions"
zplug "agkozak/zsh-z"
zplug "hlissner/zsh-autopair"
zplug "mafredri/zsh-async", from:github
zplug "sindresorhus/pure", use:pure.zsh, from:github, as:theme
# Install plugins if there are plugins that have not been installed
if ! zplug check; then
zplug install
fi
# change the path color
zstyle :prompt:pure:virtualenv color white
zstyle :prompt:pure:git:branch color yellow
zstyle :prompt:pure:path color cyan
# Then, source plugins and add commands to $PATH
zplug load
# load aliases
if [ -f "$HOME/.zsh_aliases" ]; then
. "$HOME/.zsh_aliases"
fi
# Fiz thunar file manager not update gtk theme
if [[ -f "$HOME/.profile" ]]; then
. "$HOME/.profile"
fi
#export STARSHIP_CONFIG="$HOME/.config/starship/starship.toml"
# eval "$(starship init zsh)"