Add status command
This commit is contained in:
@@ -5,7 +5,7 @@ _ssh-proxy() {
|
||||
local cur prev words cword args
|
||||
_init_completion || return
|
||||
|
||||
local -r cmdargs="start stop"
|
||||
local -r cmdargs="status start stop"
|
||||
local -r cnfargs="--help"
|
||||
local profiledir=~/.config/ssh-proxy
|
||||
local tempdir="/tmp/ssh-proxy-${USER}"
|
||||
@@ -30,6 +30,9 @@ _ssh-proxy() {
|
||||
--help)
|
||||
return
|
||||
;;
|
||||
status)
|
||||
return
|
||||
;;
|
||||
start)
|
||||
local -r PROFILELIST=$(\ls ${profiledir})
|
||||
# shellcheck disable=SC2207
|
||||
|
||||
Reference in New Issue
Block a user