-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
73 lines (60 loc) · 2.02 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
## ZSh Configs
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load
ZSH_THEME="agnoster"
# Update oh my zsh automatically without asking
zstyle ':omz:update' mode auto
# Uncomment the following line to change how often to auto-update (in days).
zstyle ':omz:update' frequency 13
# Remove user and host names
export DEFAULT_USER=$USER
## Plugins
## plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
# Sourcing ZSH zsh-autosuggestions
source $(brew --prefix)/opt/zsh-autosuggestions/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# Sourcing ZSH zsh-autosuggestions
source $(brew --prefix)/opt/zsh-syntax-highlighting/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Sourcing zsh-vi-mode
source $(brew --prefix)/opt/zsh-vi-mode/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
source $ZSH/oh-my-zsh.sh
## Python Env
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
## Utils
# Constants
DOCUMENTS=$HOME/Documents/
# Aliases
alias nv="nvim"
alias vscode="/opt/homebrew/bin/code"
alias doc=$DOCUMENTS
# Filepath
alias code="$HOME/Documents/Codebases/"
# ZSH Config
export dotfile=~/dotfile # Make sure to export the variable
alias zc="nvim $dotfile/.zshrc"
# NeoVim Config
alias nc="cd ~/.config/nvim/lua && nv ."
alias ohmyzsh="nv ~/.oh-my-zsh"
alias notes="cd ~/Documents/wtlau-obsidian/ && nv ."
# Arcteryx
alias arc="cd ~/Documents/Codebases/arc/"
alias core="cd ~/Documents/Codebases/arc/core-ui/"
alias content="cd ~/Documents/Codebases/arc/content-pages/"
alias logs="cd ~/Documents/Codebases/arc/logs/"
alias arcnpm='eval "source ~/.aws/switch-aws-profile.sh prod"'
## Mini Apps
# Weather
alias weather='curl wttr.in/Vancouver\' #current, narrow, quiet, no Follow
# Cal
alias cal='cal -A 2'
# Report Weather
# weather
# Starting Dir
#cd $DOCUMENTS
# Bitbucket Arcteryx
eval $(ssh-agent)