if [ -f `which powerline-daemon` ]; then powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 . /usr/share/powerline/bash/powerline.sh fi export NVM_DIR="$HOME/.nvm" export PROJECTS_DIR="$HOME/projects" function gg() { cd "$PROJECTS_DIR/$1"; if [ -f "$PROJECTS_DIR/$1/ansible.cfg" ]; then ANSIBLE_CONFIG="$PROJECTS_DIR/$1/ansible.cfg" ANSIBLE_COLLECTIONS_PATH="$PROJECTS_DIR/$1/.ansible" poetry shell; elif [ -f "$PROJECTS_DIR/$1/pyproject.toml" ]; then poetry shell; fi } mpw() { _copy() { if hash pbcopy 2>/dev/null; then pbcopy elif hash xclip 2>/dev/null; then xclip -selection clip else cat; echo 2>/dev/null return fi echo >&2 "Copied!" } # Empty the clipboard :| _copy 2>/dev/null # Ask for the user's name and password if not yet known. MPW_FULLNAME="Ethan Paul" # Start Master Password and copy the output. printf %s "$(MPW_FULLNAME=$MPW_FULLNAME command mpw "$@")" | _copy } alias explorer='nautilus' alias doc='cd ~/Documents' alias dn='cd ~/Downloads' alias prun="poetry run" alias psync="poetry install --remove-untracked"