-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
40 lines (32 loc) · 1.06 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
# User configuration
[[ -f ${HOME}/.zshaliases ]] && source ${HOME}/.zshaliases
# Local config
[[ -f ${HOME}/.zshrc.local ]] && source ${HOME}/.zshrc.local
plugins=(
z
git
asdf
colored-man-pages
zsh-autosuggestions
zsh-syntax-highlighting
)
# Path to oh-my-zsh installation.
export ZSH="${HOME}/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh
# Better history searching
# https://coderwall.com/p/jpj_6q/zsh-better-history-searching-with-arrow-keys
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "^p" up-line-or-beginning-search
bindkey "^n" down-line-or-beginning-search
# Autosuggest keybindings
# bindkey '^ ' autosuggest-accept
# bindkey '^t' autosuggest-toggle
# Set up fzf key bindings and auto completion
[[ "$(command -v fzf)" ]] && eval "$(fzf --zsh)"
[[ -f ${HOME}/.fzf.zsh ]] && source ${HOME}/.fzf.zsh
[[ -f ${HOME}/.fzf-git.sh/fzf-git.sh ]] && source ${HOME}/.fzf-git.sh/fzf-git.sh
# Prompt
[[ "$(command -v starship)" ]] && eval "$(starship init zsh)"