From ec28e2df08420c3bfa389affbfedf2278a363d03 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 14 May 2020 01:19:58 -0400 Subject: .bashrc: Ensure correct path on lxc helpers --- .bashrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index c08ae75..8f13183 100644 --- a/.bashrc +++ b/.bashrc @@ -98,10 +98,10 @@ alias audacity='PULSE_LATENCY_MSEC=30 audacity' # 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 } +lxc-copy() { $(which lxc-copy) -n "$1" -N "$2"; } +lxc-restart() { $(which lxc-stop) -n "$1"; $(which lxc-start) -n "$1"; } +lxc-start() { for container in "$@"; do $(which lxc-start) -n "$container"; done } +lxc-stop() { for container in "$@"; do $(which lxc-stop) -n "$container"; done } # docker aliases alias pdf2htmlEX='docker run -ti --rm -v "$PWD":/pdf bwits/pdf2htmlex:1.0 pdf2htmlEX' -- cgit v1.2.3