-
Notifications
You must be signed in to change notification settings - Fork 4
/
.zshrc
79 lines (64 loc) · 1.86 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
77
78
79
# Please make sure this block is at the start of this file
[ -s ~/.fig/shell/pre.sh ] && source ~/.fig/shell/pre.sh
BASE_DIR="/Users/<username>"
# If you come from bash you might have to change your $PATH
source ~/.bash_profile
# NVM stuff
source ~/.nvm/nvm.sh
export NVM_LAZY=1
# Python (PIP) stuff
export PATH="$PATH:$BASE_DIR/Library/Python/3.9/bin"
# Golang stuff
export PATH="$PATH:$BASE_DIR/go/bin"
#Java stuff
export PATH="$PATH:$BASE_DIR/apache-maven-3.9.6/bin"
# Path to oh-my-zsh installation
export ZSH="$HOME/.oh-my-zsh"
# Set Zsh external theme (installed through ohmyzsh symlink)
ZSH_THEME="spaceship"
# Set Zsh theme as prompt
autoload -U promptinit; promptinit
source $ZSH/oh-my-zsh.sh
# Load renv
eval "$(rbenv init -)"
# PG
PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH"
# General
alias python=python3
alias zshconfig='vim ~/.zshrc'
alias bashconfig='vim ~/.bash_profile'
alias gitconfig='vim ~/.gitconfig'
alias ohmyzsh='vim ~/.oh-my-zsh'
alias zshrel='source ~/.zshrc'
alias tr='trash'
alias update='brew update; brew upgrade; brew cu -ay; brew cleanup;'
alias l='ls | lolcat'
alias la='ls -la | lolcat'
# Enable color output
export CLICOLOR=1
export LSCOLORS=gx
# Git
alias g!='git init && gac "Initial commit :unicorn:"'
alias gcl='git clone'
alias g.='git add .'
alias gc='git-cz --disable-emoji'
alias gb='git branch'
alias gch='git checkout'
alias gchn='git checkout -b'
alias gblame='git blame'
alias gd='git diff'
alias gf='git fetch'
alias gl='git log'
alias gph='git push'
alias gph-f='git push -f'
alias gpl='git pull'
alias gr='git remote'
alias gs='git status'
alias gsh='git stash'
alias gsh-a='git stash apply'
alias gsh-c='git stash clear'
alias gsh-d='git stash drop'
alias gsh-l='git stash list'
alias gsh-p='git stash pop'
# Please make sure this block is at the end of this file
[ -s ~/.fig/fig.sh ] && source ~/.fig/fig.sh