]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Sort instance listing at kvmx-clipboard
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 12 Nov 2018 20:29:00 +0000 (18:29 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 12 Nov 2018 20:29:00 +0000 (18:29 -0200)
kvmx-clipboard

index 6f454631bae850c4aad932f85869325b0db93b08..8bf6f6c8c099dcad794d1eedc3cbfb54552ad13c 100755 (executable)
@@ -55,7 +55,7 @@ function __kvmx_clipboard_copy {
 
 function __kvmx_clipboard_list {
   # That's crude, but fast
-  instances="`ps aux | grep qemu-system | grep -- '-name ' | sed -e 's/^.*-name //' -e 's/ .*//'`"
+  instances="`ps aux | grep qemu-system | grep -- '-name ' | sed -e 's/^.*-name //' -e 's/ .*//' | sort`"
   instances="host $instances"
 
   echo "KVMX Clipboard"