Add Pyenv to bashrc and roles_pul to aliases

This commit is contained in:
Alexander Hosking 2017-07-04 14:31:06 -04:00
parent 8a59b8fff8
commit a81cb50206
2 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,7 @@ if [ -d "$HOME/.dotfiles" ]; then
elif [[ -n $CURRENT_SCRIPT && -x "$READLINK" ]]; then elif [[ -n $CURRENT_SCRIPT && -x "$READLINK" ]]; then
SCRIPT_PATH=$($READLINK -f "$CURRENT_SCRIPT") SCRIPT_PATH=$($READLINK -f "$CURRENT_SCRIPT")
DOTFILES_DIR=$(dirname "$(dirname "$SCRIPT_PATH")") DOTFILES_DIR=$(dirname "$(dirname "$SCRIPT_PATH")")
echo $DOTFILES_DIR #echo $DOTFILES_DIR
else else
echo "Unable to find dotfiles, exiting." echo "Unable to find dotfiles, exiting."
return # `exit 1` would quit the shell itself return # `exit 1` would quit the shell itself
@ -173,3 +173,6 @@ log_bash_persistent_history
## Keyboard Mapping!!! ## Keyboard Mapping!!!
setxkbmap dvorak setxkbmap dvorak
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

View File

@ -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 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_fetch='r10k puppetfile install --puppetfile Puppetfile --moduledir ../../roles/'
alias roles_pull='for role in `ls ../../roles`; do `cd ../../roles/$role && git pull`; done'