aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-04-03 19:00:53 -0400
committertdro <tdro@users.noreply.github.com>2020-04-03 19:00:53 -0400
commit9224d321816358f792cf4fd3cb8b8751e3f5f7d3 (patch)
tree155a165a31f65bc47a7bf9a7a692c05503476042 /.bashrc
parente82dd8132f7308f789b8b43374ed19bd16e4f124 (diff)
downloaddotfiles-9224d321816358f792cf4fd3cb8b8751e3f5f7d3.tar.gz
dotfiles-9224d321816358f792cf4fd3cb8b8751e3f5f7d3.tar.bz2
dotfiles-9224d321816358f792cf4fd3cb8b8751e3f5f7d3.zip
.bashrc: More low level lxc/lxd helpers
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 6b58b7b..c7da29d 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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'