aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc8
1 files changed, 4 insertions, 4 deletions
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'