mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Merge pull request #3 from genebean/13strings
Updates from loaner laptop
This commit is contained in:
commit
b8745c6c3e
2 changed files with 22 additions and 2 deletions
|
|
@ -71,3 +71,4 @@ let g:vim_markdown_folding_disabled = 1
|
||||||
|
|
||||||
" import settings that are OS specific
|
" import settings that are OS specific
|
||||||
source ~/.vimrc_os_specific
|
source ~/.vimrc_os_specific
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,23 +49,27 @@ COMPLETION_WAITING_DOTS="false"
|
||||||
|
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
ZSH_CUSTOM=~/repos/customized-oh-my-zsh
|
||||||
|
|
||||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(aws brew bundler gem git git-flow github history kubectl osx pip python terraform vagrant)
|
plugins=(brew bundler gem git git-flow github history kube-ps1 kubectl osx pip python terraform vagrant)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
|
# make tab completions work right
|
||||||
|
autoload -Uz compinit && compinit
|
||||||
|
|
||||||
[ -f ~/.private-env ] && source ~/.private-env || echo '~/.private-env is missing'
|
[ -f ~/.private-env ] && source ~/.private-env || echo '~/.private-env is missing'
|
||||||
|
|
||||||
# Start GPG agent
|
# Start GPG agent
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
gpg-connect-agent /bye
|
|
||||||
export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh
|
export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh
|
||||||
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||||
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
|
|
@ -126,12 +130,20 @@ if [[ `uname` == 'Darwin' ]]; then
|
||||||
|
|
||||||
eval '/usr/libexec/path_helper -s' > /dev/null
|
eval '/usr/libexec/path_helper -s' > /dev/null
|
||||||
|
|
||||||
|
# Add OVFTool to PATH if it is installed
|
||||||
|
[ -d '/Applications/VMware OVF Tool' ] && export PATH=$PATH:'/Applications/VMware OVF Tool'
|
||||||
|
|
||||||
# optional additions from homebrew
|
# optional additions from homebrew
|
||||||
|
[ -d "/usr/local/opt/node@10/bin" ] && export PATH="/usr/local/opt/node@10/bin:$PATH"
|
||||||
[ -d /usr/local/opt/qt/bin ] && export PATH=$PATH:/usr/local/opt/qt/bin
|
[ -d /usr/local/opt/qt/bin ] && export PATH=$PATH:/usr/local/opt/qt/bin
|
||||||
|
|
||||||
# use homebrew's ruby
|
# use homebrew's ruby
|
||||||
[ -d /usr/local/opt/ruby/bin ] && export PATH=/usr/local/opt/ruby/bin:$PATH
|
[ -d /usr/local/opt/ruby/bin ] && export PATH=/usr/local/opt/ruby/bin:$PATH
|
||||||
|
|
||||||
|
# add gems to path
|
||||||
|
GEMBIN="$(gem environment gemdir)/bin"
|
||||||
|
export PATH=$PATH:$GEMBIN
|
||||||
|
|
||||||
if [[ -f '/Applications/google-cloud-sdk' ]]; then
|
if [[ -f '/Applications/google-cloud-sdk' ]]; then
|
||||||
source /Applications/google-cloud-sdk/completion.zsh.inc
|
source /Applications/google-cloud-sdk/completion.zsh.inc
|
||||||
source /Applications/google-cloud-sdk/path.zsh.inc
|
source /Applications/google-cloud-sdk/path.zsh.inc
|
||||||
|
|
@ -139,4 +151,11 @@ if [[ `uname` == 'Darwin' ]]; then
|
||||||
|
|
||||||
# added by travis gem
|
# added by travis gem
|
||||||
[ -f ~/.travis/travis.sh ] && source ~/.travis/travis.sh || echo 'The travis gem is missing. After installing it run "echo y|travis" to create ~/.travis'
|
[ -f ~/.travis/travis.sh ] && source ~/.travis/travis.sh || echo 'The travis gem is missing. After installing it run "echo y|travis" to create ~/.travis'
|
||||||
|
|
||||||
|
function get_cluster_short() {
|
||||||
|
echo "$1" |rev |cut -d _ -f1 |rev
|
||||||
|
}
|
||||||
|
KUBE_PS1_CLUSTER_FUNCTION=get_cluster_short
|
||||||
|
KUBE_PS1_COLOR_CONTEXT="%{$fg[yellow]%}"
|
||||||
|
KUBE_PS1_ENABLED=false
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue