-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
63 lines (52 loc) · 1.87 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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
SAVEHIST=10000000
setopt appendhistory extendedglob nomatch notify extended_history inc_append_history_time
unsetopt autocd beep
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename "$HOME/.zshrc"
autoload -Uz compinit
compinit
# End of lines added by compinstall
[[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'
bindkey '^R' history-incremental-pattern-search-backward
fpath=($fpath ~/.zsh/funcs)
autoload -Uz git-escape-magic
git-escape-magic
autoload bashcompinit
bashcompinit
if [[ -x "$(command -v pyenv)" ]]; then
eval "$(pyenv init -)"
if pyenv commands | grep -q "virtualenvwrapper"; then
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=$HOME/.pyenv/shims/python3
pyenv virtualenvwrapper
fi
fi
export PATH="/usr/local/opt/mysql-client/bin:$PATH"
if [[ -x "$(command -v onelogin-aws-assume-role)" && -f ~/code/edx-internal/scripts/assume-role-onelogin.sh ]]; then
export ONELOGIN_EMAIL="[email protected]"
export UPDATE_PS1_ASSUME_ROLE=true
source ~/code/edx-internal/scripts/assume-role-onelogin.sh
fi
if kubectl krew version &>/dev/null; then
export PATH="${PATH}:${HOME}/.krew/bin"
fi
if [[ -x "$(command -v dscl)" ]]; then
ad-get-users-groups () {
local user=${1:?"No Username Provided/"};
dscl '/Active Directory/2TOR/All Domains' read "/Users/${user}" dsAttrTypeNative:memberOf | \
( read -r;
printf "%s\n" "$REPLY";
sort -f )
}
ad-get-group-members () {
local group=${1:?"No Group Provided/"};
dscl '/Active Directory/2TOR/All Domains' read "/Groups/${group}" GroupMembership | \
( read -r;
printf "%s\n" "$REPLY";
sort -f )
}
fi