small pixel drawing of a pufferfish dotfiles

.env

#!/bin/sh

PS1='$(prompt) \$ '

# extend pa for git stuffs
pa() {
    case $1 in
        g)
            cd "${PA_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pa}"
            git pull
            git add --all
            git commit -m '*'
            git push
            cd -
        ;;

        *)
            command pa "$@"
        ;;
    esac
}

if [ -z "${SSH_AGENT_PID}" ]
then
	if ! [ -e /tmp/ssh-agent-$USER ]
	then
		ssh-agent 2>/dev/null >/tmp/ssh-agent-$USER
	fi
	. /tmp/ssh-agent-$USER >/dev/null
fi

# launch alacritty with no GPU support if on old thinkpad
if [ "$(hostname)" == 'nyx' ]; then
  export LIBGL_ALWAYS_SOFTWARE=1
fi

if [ "$(hostname)" == 'nostromo' ]; then
  if ! pgrep syncthing &> /dev/null; then
    syncthing --no-browser > /dev/null &
  fi
fi

# chef stuff
alias be='bundle exec'