-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
75 lines (58 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
74
75
export PATH=$HOME/bin:/usr/local/bin:$PATH
# colors
export TERM="xterm-256color"
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
setopt share_history
# prompt
autoload -U colors && colors
PROMPT="%{$fg_bold[blue]%}›%{$reset_color%}%{$fg_bold[red]%}›%{$reset_color%}%{$fg_bold[green]%}›%{$reset_color%} "
PS1=$'\n'"$PS1"
# plugins
fpath=(~/.zsh/completion $fpath)
autoload -U compinit && compinit
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
fi
# helper functions
function denter(){
if [ -z "$1" ]; then echo "\nPlease:\n denter [ContainerName]\n\nView:\n docker container ls\n" ;else docker exec -it "$1" /bin/bash ;fi;
}
function mkd() {
mkdir -p "$@" && cd "$_";
}
clone() {
git clone $1
cd $(basename ${1%.*})
}
checkport(){
lsof -n -i:$1
}
# aliases
alias gs='git status'
alias ga='git add .'
alias gp='git push'
alias gc='git commit -m'
alias dco='docker-compose'
alias gco='git checkout'
alias chrome='open -a "/Applications/Google Chrome.app"'
alias ez='vim $HOME/.zshrc'
alias gsu='git submodule update --init'
alias dvr='docker volume rm $(docker volume ls --filter dangling=true -q)'
alias c='clear'
alias usage='top -l 1 | grep -E "^CPU|^Phys"'
alias cpu='top -F -R -o cpu'
# paths
export GOPATH="$HOME/go"
export PATH=$PATH:$GOPATH/bin
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/kevin/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/kevin/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/kevin/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/kevin/google-cloud-sdk/completion.zsh.inc'; fi
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
export GOPRIVATE=github.com/helloturbine/app