-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
62 lines (49 loc) · 1.38 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
autoload -U compinit
autoload -U edit-command-line
compinit
HISTFILE=~/.zsh_history
HISTSIZE=20000
SAVEHIST=20000
setopt HIST_IGNORE_SPACE
if [ -d /opt/homebrew ]; then
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/sbin:$PATH"
fi
bindkey -e
alias ..='cd ..'
alias vim='nvim'
alias be="bundle exec"
alias cat="bat"
compdef g=git
function g() {
if [ "$#" -eq 0 ]; then
git status
else
git "$@"
fi
}
function open() {
if (hash open 2>/dev/null); then
command open "$@"
elif (hash xdg-open 2>/dev/null); then
xdg-open "$@"
else
echo "No open command found."
return 1
fi
}
export PATH="$PATH:$HOME/.volta/bin"
export PATH="$PATH:$HOME/.rbenv/bin"
eval "$(starship init zsh)"
eval "$(rbenv init - zsh)"
[ -f "$HOME/.cargo.env" ] && source "$HOME/.cargo/env"
[ -f /usr/share/fzf/shell/key-bindings.zsh ] && source /usr/share/fzf/shell/key-bindings.zsh
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
[ -f /usr/share/autojump/autojump.zsh ] && . /usr/share/autojump/autojump.zsh
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
[ -f /etc/profile.d/autojump.sh ] && . /etc/profile.d/autojump.sh
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
zle -N edit-command-line
bindkey "^X^E" edit-command-line
[ -f ~/.zshrc.local ] && source ~/.zshrc.local