.shinit
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
#!/bin/sh
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
export EDITOR=vim
export PS1='$(short-pwd)$ '
export HISTFILESIZE=10000
export PASH_KEYID=j3s@c3f.net
export PASH_DIR="$HOME/.password-store"
# general
alias vi=vim
alias gj='git add . ; git commit -m "*" ; git push'
# mksh
if echo "$SHELL" | grep -q "mksh"; then
bind '^L=clear-screen'
export HISTFILE="$HOME/.mksh-history"
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