commit - e1c4ab18b10da6c432da7f95756ecbc773f3501a
commit + 1155c4610bbc16c3ed2d59b63d61d9591e632c97
blob - 49cbc434e882a17d87fc4e063cf2e54edd1ebd60
blob + a8e210a90ec4482290e2aa8e87ab993beb406774
--- etc/mykshrc
+++ etc/mykshrc
# command man "$@"
#}
-set -A complete_rcctl_1 -- configtest check reload restart stop start status disable enable ls
-set -A complete_rcctl_2 -- $(rcctl ls all)
-set -A complete_vmctl_1 -- console create pause reload start status stop unpause wait
-set -A complete_vmctl -- $(vmctl status | awk '!/NAME/{print $NF}')
+if [ "$(uname)" = "OpenBSD" ]; then
+ set -A complete_rcctl_1 -- configtest check reload restart stop start status disable enable ls
+ set -A complete_rcctl_2 -- $(rcctl ls all)
+ set -A complete_vmctl_1 -- console create pause reload start status stop unpause wait
+ set -A complete_vmctl -- $(vmctl status | awk '!/NAME/{print $NF}')
+fi
set -A complete_git_1 -- clone init add mv restore rm bisect diff show status branch commit merge rebase reset tag fetch pull push
COMMANDS=$(command ls -1 -- $(echo "$PATH" | tr ':' '\n') | sort | uniq)
set -A complete_doas_1 -- ${COMMANDS}
set -A complete_ifconfig_1 -- $(ifconfig | grep -o '^[a-z0-9]*')
set -A complete_ifconfig -- up down join nwid wpakey autoconf -inet -inet6
set -A complete_pass_1 -- show generate ls edit git rm cp mv
-set -A complete_pass -- $(cd $HOME/.password-store && find . -type f -name '*.gpg' | sed 's/^\.\///; s/\.gpg$//')
+#set -A complete_pass -- $(cd $HOME/.password-store && find . -type f -name '*.gpg' | sed 's/^\.\///; s/\.gpg$//')
alias pman='man -M /usr/local/share/doc/posix/man'
alias papropos='apropos -M /usr/local/share/doc/posix/man'
alias pwhatis='whatis -M /usr/local/share/doc/posix/man'
-alias gd='got di | bat -l patch'
-alias gl='got log -d | less'
+gd() {
+ got di "$@" | bat -l patch
+}
+gl() {
+ got log -d "$@" | less
+}
if [ "$TERM" = "xterm" ]; then
printf '\e[4?h'