diff options
author | tdro <tdro@users.noreply.github.com> | 2020-04-03 19:00:53 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-04-03 19:00:53 -0400 |
commit | 9224d321816358f792cf4fd3cb8b8751e3f5f7d3 (patch) | |
tree | 155a165a31f65bc47a7bf9a7a692c05503476042 /.bashrc | |
parent | e82dd8132f7308f789b8b43374ed19bd16e4f124 (diff) | |
download | dotfiles-9224d321816358f792cf4fd3cb8b8751e3f5f7d3.tar.gz dotfiles-9224d321816358f792cf4fd3cb8b8751e3f5f7d3.tar.bz2 dotfiles-9224d321816358f792cf4fd3cb8b8751e3f5f7d3.zip |
.bashrc: More low level lxc/lxd helpers
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -139,10 +139,13 @@ alias rangerinf='while true; do ranger; done' # archey3 alias archey3="archey3 --config=~/.config/archey3.cfg" -# lxc +# lxc helpers alias lxc-attach='lxc-attach --clear-env -n' alias lxc-ls='lxc-ls -f' lxc-copy() { /usr/bin/lxc-copy -n "$1" -N "$2"; } +lxc-restart() { /usr/bin/lxc-stop -n "$1"; /usr/bin/lxc-start -n "$1"; } +lxc-start() { for container in "$@"; do /usr/bin/lxc-start -n "$container"; done } +lxc-stop() { for container in "$@"; do /usr/bin/lxc-stop -n "$container"; done } # docker aliases alias pdf2htmlEX='docker run -ti --rm -v "$PWD":/pdf bwits/pdf2htmlex:1.0 pdf2htmlEX' |