-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
56 lines (43 loc) · 1.38 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
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="/Users/jorge/.oh-my-zsh"
# autoload -U promptinit; promptinit
# prompt pure
ZSH_THEME="spaceship"
DISABLE_MAGIC_FUNCTIONS=true
plugins=(
brew
git
tmux
zsh-autosuggestions
zsh-syntax-highlighting
)
export LANG=en_US.UTF-8
export ARCHFLAGS="-arch x86_64"
unsetopt beep
source $ZSH/oh-my-zsh.sh
export EDITOR='nvim'
alias c="clear"
alias vi="nvim"
alias vim='nvim'
alias brewup='brew update; brew upgrade; brew cleanup'
alias zshconfig='nvim ~/.zshrc'
alias fetchconfig='nvim ~/.config/neofetch/config'
alias gitconfig='nvim ~/.gitconfig'
alias rm='trash'
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias pipes='pipes.sh'
alias lines='git ls-files | xargs wc -l'
alias npmls='npm -g ls --depth=0'
alias yup='yarn global upgrade --latest'
alias vimconfig='nvim ~/.config/nvim/init.vim'
alias tmuxconfig='nvim ~/.tmux.conf'
alias l="exa -al"
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
alias dotfiles='/usr/bin/git --git-dir=/Users/jorge/.myconf/ --work-tree=/Users/jorge'
# opam configuration
test -r /Users/jorge/.opam/opam-init/init.zsh && . /Users/jorge/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
# rbenv
eval "$(rbenv init -)"