From a81cb50206646b3d90c072186e5ae3e37b19953b Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 4 Jul 2017 14:31:06 -0400 Subject: [PATCH 1/2] Add Pyenv to bashrc and roles_pul to aliases --- run/.bashrc | 5 ++++- system/.alias | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/run/.bashrc b/run/.bashrc index ba7e27f..8719dd5 100755 --- a/run/.bashrc +++ b/run/.bashrc @@ -13,7 +13,7 @@ if [ -d "$HOME/.dotfiles" ]; then elif [[ -n $CURRENT_SCRIPT && -x "$READLINK" ]]; then SCRIPT_PATH=$($READLINK -f "$CURRENT_SCRIPT") DOTFILES_DIR=$(dirname "$(dirname "$SCRIPT_PATH")") - echo $DOTFILES_DIR + #echo $DOTFILES_DIR else echo "Unable to find dotfiles, exiting." return # `exit 1` would quit the shell itself @@ -173,3 +173,6 @@ log_bash_persistent_history ## Keyboard Mapping!!! setxkbmap dvorak +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" diff --git a/system/.alias b/system/.alias index d507316..c54ad70 100755 --- a/system/.alias +++ b/system/.alias @@ -23,3 +23,4 @@ alias git_clean='git fetch --all && git reset --hard origin/master' alias vpn_lyrical='cd /home/ahosking/lyrical/vpn &&sudo openvpn --config gw-udp-1194-ahosking-vpn.ovpn' alias roles_fetch='r10k puppetfile install --puppetfile Puppetfile --moduledir ../../roles/' +alias roles_pull='for role in `ls ../../roles`; do `cd ../../roles/$role && git pull`; done' From 74d04c82ec2c6c5e8e898a997eb20fe3236d93ba Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 4 Jul 2017 14:40:12 -0400 Subject: [PATCH 2/2] Making Aliases behave better! --- system/.alias | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/.alias b/system/.alias index c54ad70..4618d33 100755 --- a/system/.alias +++ b/system/.alias @@ -23,4 +23,4 @@ alias git_clean='git fetch --all && git reset --hard origin/master' alias vpn_lyrical='cd /home/ahosking/lyrical/vpn &&sudo openvpn --config gw-udp-1194-ahosking-vpn.ovpn' alias roles_fetch='r10k puppetfile install --puppetfile Puppetfile --moduledir ../../roles/' -alias roles_pull='for role in `ls ../../roles`; do `cd ../../roles/$role && git pull`; done' +alias roles_pull='for role in `ls ../../roles`; do echo "########" $role; echo `git -C ../../roles/$role pull`; done'