aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
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 }