dotconf/.kshrc

64 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-09-18 08:13:06 -06:00
GOT_AUTHOR="Aaron Bieber <aaron@bolddaemon.com>"
BROWSER=$(which xdg-open 2>/dev/null)
2021-01-11 10:14:08 -07:00
OHMYKSH_DIR=${HOME}/src/ohmyksh
2021-06-21 07:56:12 -06:00
OHMYPATCHES=~/patches
2020-09-18 08:13:06 -06:00
2021-10-02 08:38:31 -06:00
PKG_PATH="$(cat /etc/installurl)/snapshots/packages/%a"
export GOT_AUTHOR BROWSER OHMYKSH_DIR OHMYPATCHES PKG_PATH
2020-09-18 08:13:06 -06:00
2020-08-17 14:27:42 -06:00
. ${OHMYKSH_DIR}/ohmy.ksh
set -A my_paths -- \
/usr/ports/infrastructure/bin \
~/bin \
~/go/bin \
2022-03-18 12:36:56 -06:00
~/.cargo/bin \
2020-08-17 14:27:42 -06:00
/usr/local/plan9/bin
paths "${my_paths[@]}"
load_extension fonts
2020-09-14 08:14:44 -06:00
load_extension fzf
2020-08-17 14:27:42 -06:00
load_extension k
load_extension nocolor
load_extension openbsd
2021-08-09 10:11:45 -06:00
which keychain 2>&1 > /dev/null && load_extension keychain
2020-08-25 07:52:56 -06:00
load_extension pkgup
2020-08-17 14:27:42 -06:00
load_completion ssh
2020-09-14 08:14:44 -06:00
pgrep -q vmd && load_completion vmd
2020-08-17 14:27:42 -06:00
load_completion rc
2022-02-08 17:16:49 -07:00
#[ -d ~/.password-store ] && load_completion gopass
2020-08-17 14:27:42 -06:00
load_completion git
load_completion got
2020-09-14 08:14:44 -06:00
pgrep -q mpd && load_completion mpc
2021-06-21 07:57:46 -06:00
load_completion ogvt
load_completion man
2020-08-17 14:27:42 -06:00
2021-01-11 10:14:44 -07:00
#[[ -s ~/.ssh/host_config ]] && read_ssh_config ~/.ssh/host_config
#set -A complete_ssh -- ${HOST_LIST[*]}
2020-08-17 14:27:42 -06:00
alias dotconf='/usr/local/bin/git --git-dir=$HOME/.dotconf --work-tree=$HOME'
2020-08-17 14:49:13 -06:00
alias mutt='stty discard undef; neomutt'
alias tmux="tmux -u2"
2021-02-09 07:46:20 -07:00
alias vi=nvim
2022-02-08 17:16:49 -07:00
#alias got='env EDITOR=nvim got'
alias lookman='man -k'
alias gomuks='env GOMUKS_CACHE_HOME=~/.gomuks gomuks'
2021-06-21 07:56:40 -06:00
alias jfd='doas /usr/sbin/sysupgrade'
2021-08-27 06:55:12 -06:00
alias goupdate='make MODGO_VERSION=latest modgo-gen-modules'
2021-10-02 08:38:31 -06:00
alias scp='scp -s'
2022-02-10 11:41:05 -07:00
alias ocvs='cvs -dabieber@cvs.openbsd.org:/cvs'
2020-08-17 14:27:42 -06:00
# the q prompt auto-loads the git-prompt extension
set_prompt q
2020-09-14 08:14:44 -06:00
2021-02-11 06:07:59 -07:00
if [ -x ~/.ksh_local ]; then
. ~/.ksh_local
fi
2021-01-11 10:14:52 -07:00
if [ -x ~/.po ]; then
. ~/.po
fi