Network : Use nms, nmu, nmd instead.
This commit is contained in:
parent
751ed8b9a2
commit
7655b87d70
|
@ -9,19 +9,19 @@ function network() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Show active connections.
|
# Show active connections.
|
||||||
function ns() {
|
function nms() {
|
||||||
nmcli connection show
|
nmcli connection show
|
||||||
}
|
}
|
||||||
|
|
||||||
# Start the connection.
|
# Start the connection.
|
||||||
# Usage: nu <CONNECTION>
|
# Usage: nu <CONNECTION>
|
||||||
function nu() {
|
function nmu() {
|
||||||
nmcli connection up "${@}"
|
nmcli connection up "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Stop the connection.
|
# Stop the connection.
|
||||||
# Usage: nd <CONNECTION>
|
# Usage: nd <CONNECTION>
|
||||||
function nd() {
|
function nmd() {
|
||||||
nmcli connection down "${@}"
|
nmcli connection down "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,4 +29,4 @@ function _complete_connections() {
|
||||||
_autocomplete $(nmcli connection show | sed "1d" | cut -d\ -f1)
|
_autocomplete $(nmcli connection show | sed "1d" | cut -d\ -f1)
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _complete_connections nd nu
|
complete -F _complete_connections nmd nmu
|
||||||
|
|
Loading…
Reference in a new issue