Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (24 sloc) 651 Bytes
#!/bin/ksh
export LANG=en_US.UTF-8
export VISUAL=emacs
export GIT_EDITOR=vi
export SVN_EDITOR=vi
export LESS_TERMCAP_md=''
export PAGER='less -M +p'
export PKG_PATH=ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All/
# Support 256 colors for putty & emacs & screen.
# http://stackoverflow.com/a/22088744
export TERMCAP=
my_prompt () {
status=$?
path=${PWD##$HOME*}
echo -n "${path:-~${PWD#$HOME}}${status#0}\n\$ "
}
case "$-" in *i*)
PS1='$(my_prompt)'
ulimit -c 0
alias ls='ls -F'
alias e='emacsclient -nw -a ""'
alias t='screen -DR'
;;
esac