dotconf/.kshrc

59 lines
1.3 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-06-21 07:56:12 -06:00
export GOT_AUTHOR BROWSER OHMYKSH_DIR OHMYPATCHES
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 \
/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-01-11 10:14:24 -07:00
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
2020-09-14 08:14:44 -06: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
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-04 08:28:10 -06:00
alias scp='scp -M sftp'
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