forked from sorin-ionescu/prezto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
150 lines (120 loc) · 5.05 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# only branches and files git completion
__git_files () {
_wanted files expl 'local files' _files
}
alias j=fasd_cd
# add Pulumi to the PATH
export PATH=$PATH:$HOME/.pulumi/bin
WHATCOMPUTERISTHIS=$(hostname -s)
# WHATCOMPUTERISTHIS=$(scutil --get ComputerName)
if [[ "$WHATCOMPUTERISTHIS" == dappy ]]; then
echo "detected dappy!"
export PATH=$PATH:/Applications/Alacritty.app/Contents/MacOS
export AWS_PAGER=''
export VISUAL='vim'
export EDITOR='vim'
export GODEBUG=asyncpreemptoff=1
export PULUMI_OPTIMIZED_CHECKPOINT_PATCH=true
alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"
eval "$(/opt/homebrew/bin/brew shellenv)"
. "$HOME/.cargo/env"
eval "$(starship init zsh)"
eval "$(direnv hook zsh)"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/henke/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/henke/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/henke/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/henke/google-cloud-sdk/completion.zsh.inc'; fi
else
echo "unknown hostname: $WHATCOMPUTERISTHIS"
STARSHIP=$(which starship)
if [[ "$STARSHIP" != "" && "$STARSHIP" != "starship not found" ]]; then
echo "detected starship!"
eval "$(starship init zsh)"
fi
DIRENV=$(which direnv)
if [[ "$DIRENV" != "" && "$DIRENV" != "direnv not found" ]]; then
echo "detected direnv!"
eval "$(direnv hook zsh)"
fi
fi
alias p="pulumi"
alias psl="pulumi stack ls"
alias pss="pulumi stack select"
alias pso="pulumi stack output"
alias pu="pulumi up"
alias pp="pulumi preview"
alias gbl="git branch --sort=-committerdate --verbose"
alias wip='git add -A && git commit -m "wip"'
alias gfmm='git fetch origin master:master'
alias gfmma='git fetch origin main:main'
alias gmb='git merge-base'
alias gmbc='git merge-base "$(git-branch-current 2> /dev/null)" master'
alias gwrmb='git reset $(git merge-base "$(git-branch-current 2> /dev/null)" master)'
alias gwrmab='git reset $(git merge-base "$(git-branch-current 2> /dev/null)" main)'
alias grimb='git rebase --interactive $(git merge-base "$(git-branch-current 2> /dev/null)" master)'
alias grimab='git rebase --interactive $(git merge-base "$(git-branch-current 2> /dev/null)" main)'
alias gwH='git reset --hard "origin/$(git-branch-current 2> /dev/null)"'
alias gwh='git reset --soft "origin/$(git-branch-current 2> /dev/null)"'
alias trashn="find . -name node_modules -type d -prune -exec trash {} +"
alias dc="docker compose"
alias dcu="docker compose up"
alias dcd="docker compose up -d"
alias dcs="docker compose stop"
alias dk="docker kill"
alias dka="docker kill \$(docker ps -q)"
alias dps="docker ps"
alias avebicd="aws-vault exec bci-clearing-dev"
alias avebici="aws-vault exec bci-clearing-int"
alias avebicp="aws-vault exec bci-clearing-prod"
alias avebid="aws-vault exec bci-dev"
alias avebii="aws-vault exec bci-int"
alias avebip="aws-vault exec bci-prod"
alias avebis="aws-vault exec bci-shared"
alias avebxcd="aws-vault exec bcx-clearing-dev"
alias avebxci="aws-vault exec bcx-clearing-int"
alias avebxcp="aws-vault exec bcx-clearing-prod"
alias avebxdd="aws-vault exec bcx-dgn-dev"
alias avebxdi="aws-vault exec bcx-dgn-int"
alias avebxdp="aws-vault exec bcx-dgn-prod"
alias avebxd="aws-vault exec bcx-dev"
alias avebxi="aws-vault exec bcx-int"
alias avebxp="aws-vault exec bcx-prod"
alias avebxs="aws-vault exec bcx-shared"
alias avenicd="aws-vault exec ngc-clearing-dev"
alias avenici="aws-vault exec ngc-clearing-int"
alias avenicp="aws-vault exec ngc-clearing-prod"
alias avenid="aws-vault exec ngc-dev"
alias avenii="aws-vault exec ngc-int"
alias avenip="aws-vault exec ngc-prod"
alias avenis="aws-vault exec ngc-shared"
alias avenxcd="aws-vault exec ngx-clearing-dev"
alias avenxci="aws-vault exec ngx-clearing-int"
alias avenxcp="aws-vault exec ngx-clearing-prod"
alias avenxd="aws-vault exec ngx-dev"
alias avenxi="aws-vault exec ngx-int"
alias avenxp="aws-vault exec ngx-prod"
alias avenxs="aws-vault exec ngx-shared"
alias avebisd="aws-vault exec bci-settlement-dev"
alias avebisi="aws-vault exec bci-settlement-int"
alias avebisp="aws-vault exec bci-settlement-prod"
alias avebxsd="aws-vault exec bcx-settlement-dev"
alias avebxsi="aws-vault exec bcx-settlement-int"
alias avebxsp="aws-vault exec bcx-settlement-prod"
alias avebed="aws-vault exec empsa-dev"
alias avebei="aws-vault exec empsa-int"
alias avebep="aws-vault exec empsa-prod"
alias assume=". assume"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/henke/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/henke/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/henke/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/henke/Downloads/google-cloud-sdk/completion.zsh.inc'; fi