From f416dc5ea749c174c751daf70ad538a87e470f9a Mon Sep 17 00:00:00 2001 From: Jules Date: Mon, 9 Mar 2026 22:53:37 +0100 Subject: [PATCH] add pyenv stuff to bash_profile and commands.. --- .bash_aliases | 4 ++++ .bash_profile | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index d68bc86..2308b1a 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -32,6 +32,9 @@ cd() { # Otherwise, use normal cd behavior builtin cd "$target" fi +# create an excuse +excuse(){ + curl -s https://bofh-api.bombeck.io/v1/excuses/random/ | jq -r '.[0].quote' } # cdl=move to directory and instantly list its contents @@ -83,6 +86,7 @@ alias pign=ping # other stuff alias eierabend='xflock4 ; systemctl suspend --no-wall' alias updgrade='sudo aptitude update && sudo aptitude upgrade -y' +alias lock='xflock4' # better passwords! alias apg='apg -M sncl -n 15 -m 10 -x 20' diff --git a/.bash_profile b/.bash_profile index 733458e..f5d77bd 100644 --- a/.bash_profile +++ b/.bash_profile @@ -14,3 +14,19 @@ if [ -f ~/.bashrc ]; then . ~/.bashrc fi +# Load pyenv automatically by appending +# the following to +# ~/.bash_profile if it exists, otherwise ~/.profile (for login shells) +# and ~/.bashrc (for interactive shells) : + +export PYENV_ROOT="$HOME/.pyenv" +[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init - bash)" + +# Restart your shell for the changes to take effect. + +# Load pyenv-virtualenv automatically by adding +# the following to ~/.bashrc: + +eval "$(pyenv virtualenv-init -)" +