-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
45 lines (36 loc) · 1.08 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
# Gerard Marull-Paretas <[email protected]>
# SPDX-License-Identifier: MIT
# history browsing
setopt APPEND_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE="100000"
setopt INTERACTIVE_COMMENTS
setopt INC_APPEND_HISTORY
export SAVEHIST="$HISTSIZE"
export SHARE_HISTORY
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
# autocompletion
autoload -U compinit
compinit
zstyle ':completion:*:*:*:*:*' menu select
# external plugins
# [email protected]:zsh-users/zsh-syntax-highlighting.git
source "$HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# aliases
alias ga="git add"
alias gst="git status"
alias gco="git checkout"
alias gd="git diff"
alias gdca="git diff --cached"
alias gc="git commit --verbose"
alias gl="git pull"
alias gp="git push"
alias gpf="git push --force"
# prompt
eval "$(starship init zsh)"