From 04863064ed2fb8bae0a19e84b6bb04f747937783 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Tue, 26 Jul 2022 16:39:44 -0700 Subject: [PATCH] stuff --- dotfiles/bash/bash_profile | 14 +++++++++----- dotfiles/bash/bashrc | 9 +++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/dotfiles/bash/bash_profile b/dotfiles/bash/bash_profile index 889b3a6..2b8bee5 100644 --- a/dotfiles/bash/bash_profile +++ b/dotfiles/bash/bash_profile @@ -1,3 +1,5 @@ +#!/usr/bin/bash + if [[ -f ~/.bashrc ]]; then source ~/.bashrc fi @@ -11,10 +13,12 @@ if [[ "$OSTYPE" == "darwin"* ]]; then export PATH="/usr/local/opt/tcl-tk/bin:$PATH" fi +if hash pyenv 2>/dev/null; then + export PYENV_ROOT="$HOME/.pyenv" + command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" +fi -# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. -export PATH="$PATH:$HOME/.rvm/bin" - -[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env +# Local bin +export PATH=$HOME/bin:/usr/local/bin:$PATH -test -r /home/vm/.opam/opam-init/init.sh && . /home/vm/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true diff --git a/dotfiles/bash/bashrc b/dotfiles/bash/bashrc index 105dbd6..35b52cb 100644 --- a/dotfiles/bash/bashrc +++ b/dotfiles/bash/bashrc @@ -188,6 +188,15 @@ then fi fi +######### +# Other functions +######### + +aws-sso () { + aws sso login --profile $1 + aws2-wrap --profile $1 --exec "~/aws-save-creds" +} + # Add RVM to PATH for scripting. Make sure this is the last PATH variable change. export PATH="$PATH:$HOME/.rvm/bin"