.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/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
# Make ^+L work on mksh
if echo "$SHELL" | grep -q "mksh"; then
bind '^L=clear-screen'
export HISTFILE="$HOME/.mksh-history"
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 ls=gls
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.6
fi