add lxclaunch
This commit is contained in:
parent
991dca63e3
commit
5ddda0a092
11
mybashrc
11
mybashrc
|
@ -544,6 +544,16 @@ _LXC_LOGIN() {
|
|||
lxc exec "$@" /usr/bin/env bash
|
||||
}
|
||||
|
||||
_LXC_LAUNCH() {
|
||||
local RANDOM
|
||||
RANDOM=$(date +%s | sha256sum | base64 | head -c 4)
|
||||
if [ "$#" = "0" ]; then
|
||||
lxc launch ubuntu-daily:18.04 "ctn-$RANDOM"
|
||||
else
|
||||
lxc launch ubuntu-daily:18.04 "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
# some more ls aliases
|
||||
#alias wp='/usr/bin/wp --allow-root'
|
||||
|
@ -585,6 +595,7 @@ alias lh="stat -c '%A %a %n' ./*"
|
|||
alias ll='ls -alhF'
|
||||
alias ls='ls --color=auto'
|
||||
alias lxclogin=_LXC_LOGIN
|
||||
alias lxclaunch=_LXC_LAUNCH
|
||||
alias magento-upgrade=MAGENTO_UPGRADE
|
||||
alias maintenance=MAINTENANCE_APT
|
||||
alias nano='nano -E'
|
||||
|
|
Loading…
Reference in New Issue