bash completions
This commit is contained in:
parent
e2468ed482
commit
772dc05def
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue