-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zshrc
58 lines (49 loc) · 1.35 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
# _
# | |
# _______| |__ _ __ ___
# |_ / __| '_ \| '__/ __|
# _ / /\__ \ | | | | | (__
# (_)___|___/_| |_|_| \___|
# Work
if [[ -f $HOME/.config/work-config/work-aliases.zsh ]]; then
source $HOME/.config/work-config/work-aliases.zsh
fi
# Aliases
alias lg='lazygit'
# Path Exports
export PATH="/usr/local/opt/llvm/bin:$PATH"
export PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH # Use GNU utils instead of BSD
export PATH="/opt/homebrew/bin:$PATH" # Require for Apple Silicon
export PATH=$PATH:$HOME/go/bin # go install bins
# oh-my-zsh
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
# User configuration
export LANG=en_AU.UTF-8
export EDITOR=nvim
export TERM=xterm-256color
export BAT_THEME="base16"
export MANPAGER="nvim +Man!"
export STARSHIP_CONFIG=~/.config/starship/starship.toml
# Aliases
alias lg='lazygit'
alias ccs='spctl -a -t exec -vv'
alias cat='bat'
alias v='nvim'
alias vi='nvim'
alias vim='nvim'
alias f='nvim $(fzf)'
# ZSH Plugins & Customization
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
eval "$(starship init zsh)"
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""' # Needed to fzf hidden files