-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
59 lines (43 loc) · 1.78 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
export GOPATH=$HOME/Development/go
# Load homebrew
# This can be automated by calling `brew shellenv` accoridng to Homebrew documentation
# But I rather not have a third party script being invoked here
export HOMEBREW_PREFIX="/opt/homebrew"
export HOMEBREW_CELLAR="/opt/homebrew/Cellar"
export HOMEBREW_REPOSITORY="/opt/homebrew"
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}"
export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:"
export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}"
# Workaround for Apple having removed the OpenSSL headers on El Capitan
export OPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2d_1
export PATH="/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/ruby/lib"
export CPPFLAGS="-I/opt/homebrew/opt/ruby/include"
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# export EDITOR=/usr/local/bin/vim
# Add some colors
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# PS1
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWSTASHSTATE=true
export GIT_PS1_SHOWCOLORHINTS=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
# source /usr/local/etc/bash_completion.d/git-prompt.sh
# Use PROMPT_COMMAND for a faster PS1 with __git_ps1
# if [[ `type -t update_terminal_cwd` == 'function' ]]; then
# OSX_FUNCTION=update_terminal_cwd
# fi
# PROMPT="\[\033[1;33m\]\u@\h\[\033[0m\]:\w"
# export PROMPT_COMMAND='$OSX_FUNCTION; __git_ps1 "$PROMPT" "$([[ -z $GS_NAME ]] || echo -e " \[\033[0;35m\]{$GS_NAME}\[\033[0m\]")\n\$ "'
# Auto complete
fpath=(/usr/local/share/zsh-completions $fpath)
autoload -Uz compinit
compinit
# complete -C aws_completer aws
#Aliases
alias gist='gist -c'
alias grep='grep --color=auto'
alias dm='docker-machine'
alias fetchrebase='git fetch --prune && git rebase origin/main'