add option to pass container to open as first arg to open-terminal.sh
parent
09394cce23
commit
373cbb591a
|
@ -1,10 +1,19 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
SEL="$(distrobox list | awk '{if (NR>1) {print $3}}' | rofi -dmenu -p "Select Distrobox ")"
|
|
||||||
|
|
||||||
if [ "$SEL" ]; then
|
open_term() {
|
||||||
|
foot -e distrobox enter "$1" --additional-flags "--env TERM=xterm-256color"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$1" ]; then
|
||||||
|
open_term "$1"
|
||||||
|
else
|
||||||
|
SEL="$(distrobox list | awk '{if (NR>1) {print $3}}' | rofi -dmenu -p "Select Distrobox ")"
|
||||||
|
if [ "$SEL" ]; then
|
||||||
echo "selected $SEL"
|
echo "selected $SEL"
|
||||||
#distrobox enter "$SEL"
|
#distrobox enter "$SEL"
|
||||||
foot -e distrobox enter $SEL --additional-flags "--env TERM=xterm-256color"
|
open_term "$SEL"
|
||||||
else
|
else
|
||||||
foot
|
foot
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue