diff options
author | tdro <tdro@users.noreply.github.com> | 2020-06-13 03:33:38 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-06-13 03:33:38 -0400 |
commit | c6c336f649688ed143a8095461f41cd75fec2c9d (patch) | |
tree | 3fe7fe3db6103861605a2e7ef01fe09dab38d7b7 /.bashrc | |
parent | 17a5e7e11272e57c4f114e4c006f626a87fc3f98 (diff) | |
download | dotfiles-c6c336f649688ed143a8095461f41cd75fec2c9d.tar.gz dotfiles-c6c336f649688ed143a8095461f41cd75fec2c9d.tar.bz2 dotfiles-c6c336f649688ed143a8095461f41cd75fec2c9d.zip |
.bashrc: Allow cloning running container
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ alias tidy='tidy -config $HOME/.config/tidy.conf' nix-which() { readlink "$(type -P "$1")"; } # lxc helpers -lxc-copy() { A=$1 && B=$2 && shift 2 && $(type -P lxc-copy) -n "$A" -N "$B" "$@"; } +lxc-copy() { A=$1 && B=$2 && shift 2 && $(type -P lxc-copy) -an "$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 } |