commit - 158fbb59b49b2ee11d78228f201620bd6470336d
commit + 5f9f0e73652abb8ce4c44eb8c3c23047e84ce1dc
blob - 8714fa785c2c9959fe0259f043da2461bda0fc36
blob + f5d7913e87ced2089ca8ed08d837e4ac885519b1
--- etc/common/mykshrc
+++ etc/common/mykshrc
*) VIM=vi ;;
esac
-case "$(command -v colorls)" in
-*/colorls) LS=colorls ;;
-*) LS=ls ;;
-esac
+if command -v colorls; then
+ LS=colorls
+elif [ "$(uname)" = 'Linux' ]; then
+ LS='ls --color=always'
+else
+ LS=ls
+fi
case "$(command -v unzip)" in
*/unzip) ;;
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
+
+if [ "$(uname)" = "OpenBSD" ] || [ "$(uname)" = "FreeBSD" ]; then
+ set -A complete_ifconfig_1 -- $(ifconfig | grep -o '^[a-z0-9]*')
+ set -A complete_ifconfig -- up down join nwid wpakey autoconf -inet -inet6
+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
if command -v got > /dev/null; then
set -A complete_got_1 -- $(got -h 2>&1 | sed -n 's/commands://p')
set -A complete_doas_1 -- ${COMMANDS}
set -A complete_which -- ${COMMANDS}
set -A complete_exec -- ${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$//')