bash completions

This commit is contained in:
caandt 2025-12-29 00:49:08 -06:00
parent e2468ed482
commit 772dc05def

View file

@ -20,6 +20,7 @@ function show() {
echo "$1 doesn't exist" ;;
esac
}
complete -c show
function goto() {
if [[ "$#" -ne 1 ]]; then
echo "usage: goto <prog>" >&2
@ -30,6 +31,7 @@ function goto() {
local real="$(realpath "$path")"
cd "${real%/*}"
}
complete -c goto
function rl() {
local l="$1"
local i=50