Repository navigation
Expand file tree
/
Copy pathzshrc
More file actions
45 lines (35 loc) · 1.33 KB
/
Copy pathzshrc
File metadata and controls
45 lines (35 loc) · 1.33 KB
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
export PATH=/opt/homebrew/bin:/usr/local/opt/python/libexec/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:~/bin:~/.local/bin:~/.bun/bin
# history setup
setopt SHARE_HISTORY
SAVEHIST=10000
HISTSIZE=9999
setopt HIST_EXPIRE_DUPS_FIRST
# AUTOCOMPLETION
## initialize autocompletion
autoload -U compinit && compinit
eval "$(starship init zsh)"
## See https://github.com/zsh-users/zsh-history-substring-search for docs
source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# turn off annoying bell sound (actually a blip)
unsetopt BEEP
# aliases
source ~/.aliases.zsh
source ~/.functions.zsh
source ~/.git.zsh
source ~/.private.zshrc
# This won't do anything because I'm not using oh-my-zsh
# But maybe I'll want to figure out how to do something similar with just zsh?
# Leaving it here as a reminder when I run into the terminal title making me mad.
# ZSH_THEME_TERM_TITLE_IDLE="%~"
eval "$(mise activate zsh)"
# envswitch, for swapping between different .env files
# thx https://github.com/sitepoint/envswitch!
eval "$(envswitch -i)"
# Set up fzf key bindings and fuzzy completion
# ctrl-R: search history
# ctrl-T: search files
source <(fzf --zsh)
# Unique ID per terminal session (used by tw-session)
export TW_SESSION_UUID=$(uuidgen)