mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Pushing local updates centered around ruby and aws
This commit is contained in:
parent
86f83be977
commit
7d67835bfc
2 changed files with 17 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -3,10 +3,13 @@
|
||||||
|
|
||||||
# Config files that are not suitable to add to version control:
|
# Config files that are not suitable to add to version control:
|
||||||
link/nix/config/configstore/update-notifier-npm.json
|
link/nix/config/configstore/update-notifier-npm.json
|
||||||
|
link/nix/config/configstore/update-notifier-yo.json
|
||||||
link/nix/config/filezilla
|
link/nix/config/filezilla
|
||||||
|
link/nix/config/fluidkeys/
|
||||||
link/nix/config/grv/
|
link/nix/config/grv/
|
||||||
link/nix/config/gtk-2.0/
|
link/nix/config/gtk-2.0/
|
||||||
link/nix/config/hub
|
link/nix/config/hub
|
||||||
link/nix/config/NuGet/nuget.config
|
link/nix/config/NuGet/nuget.config
|
||||||
link/nix/config/powershell/powershellget/
|
link/nix/config/powershell/powershellget/
|
||||||
link/nix/config/QtProject/
|
link/nix/config/QtProject/
|
||||||
|
link/nix/config/tmuxinator/
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ COMPLETION_WAITING_DOTS="false"
|
||||||
# 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=(brew bundler gem git git-flow github history osx pip python terraform vagrant)
|
plugins=(aws brew bundler gem git git-flow github history kubectl osx pip python terraform vagrant)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
|
@ -96,6 +96,13 @@ function otpoff() {
|
||||||
osascript -e 'tell application "yubiswitch" to KeyOff'
|
osascript -e 'tell application "yubiswitch" to KeyOff'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# helper for aws and assume-role
|
||||||
|
function awsrole() {
|
||||||
|
echo "Enter MFA token:"
|
||||||
|
read mfatoken
|
||||||
|
eval $(assume-role $1 $AWS_HELPER_USERNAME $mfatoken)
|
||||||
|
}
|
||||||
|
|
||||||
export EDITOR='vim'
|
export EDITOR='vim'
|
||||||
export POWERLINE_CONFIG_COMMAND='/usr/local/bin/powerline-config'
|
export POWERLINE_CONFIG_COMMAND='/usr/local/bin/powerline-config'
|
||||||
export VAGRANT_DEFAULT_PROVIDER='virtualbox'
|
export VAGRANT_DEFAULT_PROVIDER='virtualbox'
|
||||||
|
|
@ -111,7 +118,7 @@ if [[ `uname` == 'Darwin' ]]; then
|
||||||
[ -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
|
||||||
#export PATH="/usr/local/opt/ruby/bin:$PATH"
|
[ -d /usr/local/opt/ruby/bin ] && export PATH=/usr/local/opt/ruby/bin:$PATH
|
||||||
|
|
||||||
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
|
||||||
|
|
@ -122,3 +129,8 @@ if [[ `uname` == 'Darwin' ]]; then
|
||||||
[ -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'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function aws_account_info {
|
||||||
|
[ "$AWS_ACCOUNT_NAME" ] && [ "$AWS_ACCOUNT_ROLE" ] && echo "%{$reset_color%}%{$fg[blue]%}aws:(%{$reset_color%}%{$fg[red]%}$AWS_ACCOUNT_NAME:$AWS_ACCOUNT_ROLE%{$fg[blue]%})%{$reset_color%}"
|
||||||
|
}
|
||||||
|
# )ofni_tnuocca_swa($ is $(aws_account_info) backwards
|
||||||
|
#PROMPT=`echo $PROMPT | rev | sed 's/ / )ofni_tnuocca_swa($ /'| rev`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue