From fedfd055ede2d8a12f83c85b14740da01c345a29 Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 9 Jun 2020 03:03:28 -0400 Subject: .bashrc: lxc-copy Pass the rest arguments --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 50e7bfd..2f4b7e3 100644 --- a/.bashrc +++ b/.bashrc @@ -102,7 +102,7 @@ alias tidy='tidy -config $HOME/.config/tidy.conf' nix-which() { readlink "$(type -P "$1")"; } # lxc helpers -lxc-copy() { $(type -P lxc-copy) -n "$1" -N "$2"; } +lxc-copy() { A=$1 && B=$2 && shift 2 && $(type -P lxc-copy) -n "$A" -N "$B" "$@"; } lxc-restart() { $(type -P lxc-stop) -kn "$1"; $(type -P lxc-start) -n "$1"; } lxc-start() { for container in "$@"; do $(type -P lxc-start) -n "$container"; done } lxc-stop() { for container in "$@"; do $(type -P lxc-stop) -kn "$container"; done } -- cgit v1.2.3