-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
56 lines (44 loc) · 1.33 KB
/
.zshrc
File metadata and controls
56 lines (44 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
46
47
48
49
50
51
52
53
54
55
56
# Folder aliases
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias dev="cd ~/Developer"
alias icl="cd ~/Library/Mobile\ Documents/com~apple~CloudDocs/"
alias dots="cd ~/Developer/dotfiles"
# Command aliases
alias c="clear"
alias v="nvim"
alias f="fzf"
alias vf='v $(f)'
alias t="tmux new -A"
alias ls="eza"
alias la="ls -la"
alias cat="bat"
# Source untracked local zsh config
[ -f ~/.zshrc.local ] && source ~/.zshrc.local
# Load fnm (Fast Node Manager) for managing Node.js versions
eval "$(fnm env --use-on-cd --shell zsh)"
# Enable history
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
setopt appendhistory
# Enable tab completion visual selection
autoload -Uz compinit && compinit
zstyle ':completion:*' menu select
# Case insensitive tab completion
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
# Homebrew
export PATH="/opt/homebrew/sbin:$PATH"
eval $(/opt/homebrew/bin/brew shellenv)
# Enable cd without cd
setopt AUTO_CD
# Set default editor to neovim
export VISUAL=nvim
export EDITOR="$VISUAL"
# Set up fzf key bindings and fuzzy completion
source <(fzf --zsh)
# Load VS Code's shell integration for the integrated terminal
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)"
# Starship prompt (https://starship.rs/)
eval "$(starship init zsh)"