-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
76 lines (58 loc) · 1.95 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# uncomment for zsh load benchmark
# zmodload zsh/zprof
# dotfile dir
DOTFILE_DIR="dotfiles"
# homebrew zsh completions
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
# Path to your oh-my-zsh configuration.
ZSH=$HOME/$DOTFILE_DIR/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# ZSH_THEME="avit"
# activate starship prompt
eval "$(starship init zsh)"
# Disable weekly update checks
DISABLE_AUTO_UPDATE="true"
# Disable auto-setting of terminal title
DISABLE_AUTO_TITLE="true"
# Which plugins would you like to load? Plugins can be found in:
# ~/.oh-my-zsh/plugins/*
#
# Custom plugins may be added to:
# ~/.oh-my-zsh/custom/plugins/
#
# Example format:
# plugins=(rails git textmate ruby)
plugins=(git bundler tmux tmuxinator macos brew colored-man-pages extract)
source $ZSH/oh-my-zsh.sh
# Disable auto-correct
unsetopt correct_all
# Always work in a tmux session if tmux is installed and using iterm
if which tmux 2>&1 >/dev/null; then
if [ "$TERM" != "screen-256color" ] && [ "$TERM" != "screen" ] && [ "$LC_TERMINAL" = "iTerm2" ]; then
tmux attach -t dev || tmux new -s dev; exit
fi
fi
# Base16 Shell
BASE16_SHELL="$HOME/$DOTFILE_DIR/base16-shell/"
[ -n "$PS1" ] && \
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
source "$BASE16_SHELL/profile_helper.sh"
# load related files
. ~/$DOTFILE_DIR/zsh/env
. ~/$DOTFILE_DIR/zsh/config
. ~/$DOTFILE_DIR/zsh/functions
. ~/$DOTFILE_DIR/zsh/aliases
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# uncomment for zsh load benchmark
# zprof
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
source /Users/mjansing/.docker/init-zsh.sh || true # Added by Docker Desktop