Add udisks based disk image attachment aliases and the alias for getting the ssh host keys for the machine.
This commit is contained in:
parent
0d7c185edc
commit
a94f105048
@ -1,6 +1,7 @@
|
|||||||
if [ -f ~/.bash_aliases_priv ]; then
|
if [ -f ~/.bash_aliases_priv ]; then
|
||||||
. ~/.bash_aliases_priv
|
. ~/.bash_aliases_priv
|
||||||
fi
|
fi
|
||||||
|
alias ssh-host-key='ssh-keyscan localhost | ssh-keygen -lf -'
|
||||||
alias weston-phone="weston --width=1920 --height=1056 -S /run/user/1000/wayland-1"
|
alias weston-phone="weston --width=1920 --height=1056 -S /run/user/1000/wayland-1"
|
||||||
alias waydroid-start="waydroid session start"
|
alias waydroid-start="waydroid session start"
|
||||||
alias waydroid-show="waydroid show-full-ui"
|
alias waydroid-show="waydroid show-full-ui"
|
||||||
@ -232,3 +233,9 @@ function apt-search() {
|
|||||||
function apt-search-installed() {
|
function apt-search-installed() {
|
||||||
apt list --installed | grep "$1";
|
apt list --installed | grep "$1";
|
||||||
}
|
}
|
||||||
|
function attach-raw-img() {
|
||||||
|
sudo udisksctl loop-setup -f "$1";
|
||||||
|
}
|
||||||
|
function dettach-raw-img() {
|
||||||
|
sudo udisksctl loop-delete -b "$1";
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user