Skip to content

Instantly share code, notes, and snippets.

@gretel
Last active October 25, 2016 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gretel/3af61081e96add59e99168fb735322fc to your computer and use it in GitHub Desktop.
Save gretel/3af61081e96add59e99168fb735322fc to your computer and use it in GitHub Desktop.
profile is all so on openbsd (sh/ksh)
# $OpenBSD: ~/.profile
#
# gretel's sh/ksh initialization
trap '. $HOME/.logout; exit' 0
escape=$(print '\033')
ctrla=$(print '\001')
PS1=$(print '\001\015')
PS1=$PS1$ctrla$escape'[$(($? ? 31 : 32))m'$ctrla
PS1=$PS1'[\u@\h \w]'
PS1=$PS1$ctrla$escape'[0m'$ctrla' '
export PS1
alias flush_pf='doas pfctl -n -f /etc/pf.conf && doas pfctl -F all -f /etc/pf.conf'
alias ls='ls -aFls'
alias msg_log='tail -f /var/log/messages'
alias mx_log='doas tail -f /var/log/maillog'
alias pf_log='doas tcpdump -eetttvvvvi pflog0'
alias sudo='echo "use doas, doh!"; doas'
alias top='top -S -s 1 -o cpu'
alias upd_pf='doas pfctl -n -f /etc/pf.conf && doas pfctl -f /etc/pf.conf'
alias upd_tbl='doas /usr/local/bin/upd_table.sh direct_dst /etc/pf_direct_dst.table'
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
export PATH HOME TERM
#PKG_PATH=http://ftp.bytemine.net/pub/OpenBSD/snapshots/packages/amd64/
#export PKG_PATH
export GOPATH=$HOME/.go
PATH="${HOME}/bin:${PATH}:${GOPATH}/bin"
export PATH
if [ -z "$SSH_AUTH_SOCK" ]; then
if ! pgrep -qxu $(id -u) ssh-agent; then
ssh-agent -s -t 60 | grep -v ^echo > ~/.ssh-agent.sh
fi
. ~/.ssh-agent.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment