aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-06-09 03:03:28 -0400
committertdro <tdro@users.noreply.github.com>2020-06-09 03:04:24 -0400
commitfedfd055ede2d8a12f83c85b14740da01c345a29 (patch)
tree352320f0f5fedd7fae86945950f2306285a106ea /.bashrc
parenta6b905fa82250c2e1747126c225bad3d4a8641fd (diff)
downloaddotfiles-fedfd055ede2d8a12f83c85b14740da01c345a29.tar.gz
dotfiles-fedfd055ede2d8a12f83c85b14740da01c345a29.tar.bz2
dotfiles-fedfd055ede2d8a12f83c85b14740da01c345a29.zip
.bashrc: lxc-copy
Pass the rest arguments
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 }