-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
53 lines (43 loc) · 1.39 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
#### INITIAL SETUP #####
#
# 1. Install oh-my-zsh (https://github.com/ohmyzsh/ohmyzsh)
# 2. Install required fonts (https://medium.com/featurepreneur/how-to-apply-agnoster-theme-in-mac-zshrc-876f3baf8bf)
# 3. Install dracula theme (https://draculatheme.com/iterm)
# 4. Install syntax highlighting (https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md)
# 5. Install autosuggestions (https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md)
# 6. Install completions (https://github.com/zsh-users/zsh-completions)
#
#### END INITIAL SETUP ####
#### OH MY ZSH CONFIG ####
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="agnoster"
plugins=(
git
macos
zsh-autosuggestions
zsh-completions
)
autoload -U compinit && compinit
source $HOME/.zsh-extensions/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $ZSH/oh-my-zsh.sh
DEFAULT_USER prompt_context(){}
#### END OH MY ZSH CONFIG ####
#### ALIASE ####
alias ll="ls -la -G"
alias g="git"
alias zshconfig="code ~/.zshrc"
alias o="open ."
#### END ALIASE ####
#### FUNCTIONS ####
function md() {
mkdir -p "$@" && cd "$@"
}
#### END FUNCTIONS #####
#### GIT DUET ####
alias git='nocorrect git'
export GIT_DUET_CO_AUTHORED_BY=1
#### END GIT DUET ####
#### SDK MAN ####
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
#### END SDK MAN ####