-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
106 lines (87 loc) · 3.51 KB
/
zshrc
File metadata and controls
106 lines (87 loc) · 3.51 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# ╭───────────────────────────────────────────╮
# │ ENVIRONMENT VARIABLES │
# ╰───────────────────────────────────────────╯
export ZSH="$HOME/.oh-my-zsh"
export EDITOR=nvim
export AIDER_EDITOR=nvim
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
export TODO_FILE="${HOME}/TODO.md"
# ╭───────────────────────────────────────────╮
# │ SOURCING FILES │
# ╰───────────────────────────────────────────╯
# Source personal configuration files
source "$HOME/dotfiles/zshenv"
source "$HOME/dotfiles/omz.zsh"
source "$HOME/dotfiles/aliases.sh"
source "$HOME/dotfiles/dynamic_cursor.zsh"
source "$HOME/dotfiles/keybindings.sh"
source "$HOME/dotfiles/api_keys.sh"
source "$HOME/dotfiles/fzf-git.sh/fzf-git.sh"
source "$HOME/dotfiles/todoist_functions_fzf.sh"
# ╭───────────────────────────────────────────╮
# │ SHELL THEME │
# ╰───────────────────────────────────────────╯
autoload -U promptinit; promptinit
prompt pure
# ╭───────────────────────────────────────────╮
# │ PLUGINS & TOOLS │
# ╰───────────────────────────────────────────╯
# Atuin - Shell History
[ -s "$HOME/.atuin/bin/env" ] && source "$HOME/.atuin/bin/env"
eval "$(atuin init zsh --disable-up-arrow)"
# Z - Directory Jumper
[ -f "$(brew --prefix)/etc/profile.d/z.sh" ] && . "$(brew --prefix)/etc/profile.d/z.sh"
# Bun - Completions
[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun"
# ╭───────────────────────────────────────────╮
# │ FUNCTIONS │
# ╰───────────────────────────────────────────╯
# ghb() - Open current repo in GitHub
# Auto sets the default repo for use with 'gh browse'
ghb() {
gh repo set-default "$(git config --get remote.origin.url)" >/dev/null 2>&1
gh browse "$@"
}
export PATH=~/.npm-global/bin:$PATH
alias claude="/Users/admin/.claude/local/claude"
export CLAUDE_CODE_ENABLE_PROMPT_CACHE=true
unset DISABLE_PROMPT_CACHING
# TEMP
alias cache='php bin/console cache:clear'
# Use 'files' to launch the Files fzf widget
files() {
_fzf_git_files
}
# Use 'branches' to launch the Branches fzf widget
branches() {
_fzf_git_branches
}
# Use 'tags' to launch the Tags fzf widget
tags() {
_fzf_git_tags
}
# Use 'remotes' to browse remotes
remotes() {
_fzf_git_remotes
}
# Use 'commits' to pick a commit hash
commits() {
_fzf_git_log
}
# Use 'stashes' to view stashes
stashes() {
_fzf_git_stashes
}
# Use 'reflogs' to view reflog entries
reflogs() {
_fzf_git_reflogs
}
# Use 'worktrees' to select a worktree
worktrees() {
_fzf_git_worktrees
}
# Use 'refs' to use git for-each-ref
refs() {
_fzf_git_each_ref
}