-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
62 lines (49 loc) · 1.66 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
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
if [ -f ~/.aliases_disable ]; then
source ~/.aliases_disable
fi
if [ -f ~/.zshrc_local ]; then
source ~/.zshrc_local
fi
if [ -f ~/.aliases_local ]; then
source ~/.aliases_local
fi
if [ -f ~/.aliases_linux ]; then
source ~/.aliases_linux
fi
if [ -f ~/.aliases_osx ]; then
source ~/.aliases_osx
fi
export EDITOR='vim'
export VISUAL='vim'
# Add vi-mode up down
bindkey '^P' up-history
bindkey '^N' down-history
bindkey '^A' beginning-of-line
bindkey '^E' end-of-line
bindkey '^R' history-incremental-search-backward
bindkey '^S' history-incremental-search-forward
bindkey '^D' delete-char
# Larger history size.
export FLUTTER_ROOT="$(asdf where flutter)"
export HISTSIZE=1000000
export SAVEHIST=1000000
export PATH=/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
export PATH=$HOME/.asdf/plugins/flutter/bin:$PATH
export PATH=/opt/homebrew/bin:/opt/homebrew/sbin:$PATH
export PATH=/usr/local/texlive/2023basic/bin/universal-darwin:$PATH
# Appends every command to the history file once it is executed
setopt inc_append_history
# Reloads the history whenever you use it
setopt share_history
# (Nice to have) ignore consecutive duplicates in history
setopt histignoredups