summaryrefslogtreecommitdiffstats
path: root/kshrc_vm_provision
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kshrc_vm_provision59
1 files changed, 59 insertions, 0 deletions
diff --git a/kshrc_vm_provision b/kshrc_vm_provision
new file mode 100644
index 0000000..0c948f6
--- /dev/null
+++ b/kshrc_vm_provision
@@ -0,0 +1,59 @@
+export EDITOR=$VIM
+export FCEDIT=$EDITOR
+export PAGER=less
+export LESS='-iMRS -x2'
+export LANG=en_US.UTF-8
+export LC_CTYPE=en_US.UTF-8
+export CLICOLOR=1
+#export LSCOLORS=Gxfxcxdxbxegedabagacad
+#export PATH=$PATH:/usr/local/jdk-11/bin
+export PATH=$PATH:/home/lemon/.fzf/bin
+export PATH=/home/lemon/bin:$PATH
+HISTFILE=$HOME/.ksh_history
+HISTSIZE=20000
+
+# emacs mode gives you the familiar Ctrl-A, Ctrl-E, etc
+set -o emacs
+
+# use colorls if it's installed, plain old ls otherwise
+if command -v colorls > /dev/null ; then
+ LS='colorls'
+else
+ LS='ls'
+fi
+alias gac="git commit -am 'update' && git push origin master"
+
+if [ -e /home/lemon/.ksh_aliases ]; then
+. /home/lemon/.ksh_aliases
+fi
+
+# nice colored prompt that also sets xterm title
+_XTERM_TITLE='\[\033]0;\u@\h:\w\007\]'
+_PS1_CLEAR='\[\033[0m\]'
+_PS1_BLUE='\[\033[34m\]'
+case "$(id -u)" in
+ 0) _PS1_COLOR='\[\033[1;31m\]' ;;
+ *) _PS1_COLOR='\[\033[32m\]' ;;
+esac
+# PS1='$_XTERM_TITLE\A $_PS1_COLOR\u@\h$_PS1_CLEAR:$_PS1_BLUE\w$_PS1_COLOR\$$_PS1_CLEAR '
+# export PS1="x1\[\e[31m\] \[\e[m\]\[\e[31m\]:\[\e[m\]\[\e[31m\]:\[\e[m\] \[\e[32m\]\w\[\e[m\] \[\e[34m\]ยป\[\e[m\] "
+export PS1='\u@\h:\[\e[33m\]\w\[\e[0m\]\$ '
+
+# update /usr/ports
+myupdateports() {
+ cd /usr && cvs -d anoncvs@anoncvs.spacehopper.org:/cvs -q up -Pd -A ports && cd - || return
+}
+
+# update /usr/sr
+myupdatesrc() {
+ cd /usr && cvs -d anoncvs@anoncvs.spacehopper.org:/cvs -q up -Pd -A src && cd - || return
+}
+
+# get date of latest snapshot
+snapdate() {
+ curl -s https://cdn.openbsd.org/pub/OpenBSD/snapshots/amd64/|grep INSTALL|tr -d ' '|cut -d'>' -f3|cut -d':' -f1
+}
+
+# GPG agent
+GPG_TTY=$(tty)
+export GPG_TTY