diff options
author | tdro <tdro@users.noreply.github.com> | 2020-05-14 01:19:58 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-05-14 01:19:58 -0400 |
commit | ec28e2df08420c3bfa389affbfedf2278a363d03 (patch) | |
tree | faa8b3c49645abd573acb8e986f867c66c89ba35 /.bashrc | |
parent | c8a30ae4a745f0fe8b80cecfc6735897714f9040 (diff) | |
download | dotfiles-ec28e2df08420c3bfa389affbfedf2278a363d03.tar.gz dotfiles-ec28e2df08420c3bfa389affbfedf2278a363d03.tar.bz2 dotfiles-ec28e2df08420c3bfa389affbfedf2278a363d03.zip |
.bashrc: Ensure correct path on lxc helpers
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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' |