small pixel drawing of a pufferfish dotfiles

.env

#!/bin/sh

PS1='$(prompt) \$ '

# needed for sway
if test -z "${XDG_RUNTIME_DIR}"; then
    export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
    if ! test -d "${XDG_RUNTIME_DIR}"; then
        mkdir "${XDG_RUNTIME_DIR}"
        chmod 0700 "${XDG_RUNTIME_DIR}"
    fi
fi

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

# colorize ls
if ls --version 2>&1 | grep -i gnu >/dev/null
then
        alias ls='ls --color=auto '
    elif ls --version 2>&1 | grep -i busybox >/dev/null
    then
            alias ls='ls --color=auto '
fi

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

# bby
if [ "$(uname -s)" == "Darwin" ]; then
  alias cdr='cd $(find ~/git/chef/cloud-roles ~/git/chef/site-cookbooks ~/git/chef/app-cookbooks ~/git/chef/dc-roles -type d -maxdepth 1 | selecta)'
  alias be='bundle exec'
  export CHEFUSER="jolson"
  export CHEF_ENV="browse_test" # just for .chef/config.rb
  export AWS_ENV="browse_test"  # just for aws cli
  export SSHUSER="jolson"
  export SSHKEY="~/.ssh/id_rsa"
  export PASH_CLIP="pbcopy"
  source /usr/local/share/chruby/chruby.sh
  chruby ruby-2.6.2
fi