Remove unused distrobox-exported bins

This commit is contained in:
Jeffrey Serio 2023-04-23 08:34:53 -05:00
parent 99de7ebe81
commit 464908347d
7 changed files with 0 additions and 160 deletions

24
btop
View File

@ -1,24 +0,0 @@
#!/bin/sh
# distrobox_binary
# name: default
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="/bin/distrobox-enter -n default -- /bin/btop --utf-force "
for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then
command="${command} \
$(echo "${arg}" | sed 's|\\|\\\\|g' |
sed 's| |\\ |g' |
sed 's|\$|\\\$|g' |
sed "s|'|\\\'|g" |
sed 's|"|\\\"|g')"
elif echo "${arg}" | grep -q "'"; then
command="${command} \"${arg}\""
else
command="${command} '${arg}'"
fi
done
eval ${command}
else
/bin/btop "$@"
fi

24
emacs
View File

@ -1,24 +0,0 @@
#!/bin/sh
# distrobox_binary
# name: default
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="/bin/distrobox-enter -n default -- /bin/emacs "
for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then
command="${command} \
$(echo "${arg}" | sed 's|\\|\\\\|g' |
sed 's| |\\ |g' |
sed 's|\$|\\\$|g' |
sed "s|'|\\\'|g" |
sed 's|"|\\\"|g')"
elif echo "${arg}" | grep -q "'"; then
command="${command} \"${arg}\""
else
command="${command} '${arg}'"
fi
done
eval ${command}
else
/bin/emacs "$@"
fi

24
nmap
View File

@ -1,24 +0,0 @@
#!/bin/sh
# distrobox_binary
# name: default_root
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="/bin/distrobox-enter --root -n default_root -- /bin/nmap "
for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then
command="${command} \
$(echo "${arg}" | sed 's|\\|\\\\|g' |
sed 's| |\\ |g' |
sed 's|\$|\\\$|g' |
sed "s|'|\\\'|g" |
sed 's|"|\\\"|g')"
elif echo "${arg}" | grep -q "'"; then
command="${command} \"${arg}\""
else
command="${command} '${arg}'"
fi
done
eval ${command}
else
/bin/nmap "$@"
fi

View File

@ -1,16 +0,0 @@
#!/usr/bin/env bash
# Use nmap from podman to check for open SSH ports on local subnet.
if test -x "$(command -v podman)"; then
if sudo podman image exists localhost/nmap; then
sudo podman run -it --rm \
--cap-add=NET_RAW \
--cap-add=NET_ADMIN \
--network host \
--name nmap \
nmap -sV -p 22 -open 10.0.0.0/24
else
echo "localhost/nmap image does not exist"
echo "Build it from github.com/hyperreal64/containerfiles"
fi
fi

24
notmuch
View File

@ -1,24 +0,0 @@
#!/bin/sh
# distrobox_binary
# name: default
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="/bin/distrobox-enter -n default -- /bin/notmuch "
for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then
command="${command} \
$(echo "${arg}" | sed 's|\\|\\\\|g' |
sed 's| |\\ |g' |
sed 's|\$|\\\$|g' |
sed "s|'|\\\'|g" |
sed 's|"|\\\"|g')"
elif echo "${arg}" | grep -q "'"; then
command="${command} \"${arg}\""
else
command="${command} '${arg}'"
fi
done
eval ${command}
else
/bin/notmuch "$@"
fi

View File

@ -1,24 +0,0 @@
#!/bin/sh
# distrobox_binary
# name: default_root
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="/bin/distrobox-enter --root -n default_root -- /bin/offlineimap "
for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then
command="${command} \
$(echo "${arg}" | sed 's|\\|\\\\|g' |
sed 's| |\\ |g' |
sed 's|\$|\\\$|g' |
sed "s|'|\\\'|g" |
sed 's|"|\\\"|g')"
elif echo "${arg}" | grep -q "'"; then
command="${command} \"${arg}\""
else
command="${command} '${arg}'"
fi
done
eval ${command}
else
/bin/offlineimap "$@"
fi

View File

@ -1,24 +0,0 @@
#!/bin/sh
# distrobox_binary
# name: default_root
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="/bin/distrobox-enter --root -n default_root -- /bin/wireshark "
for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then
command="${command} \
$(echo "${arg}" | sed 's|\\|\\\\|g' |
sed 's| |\\ |g' |
sed 's|\$|\\\$|g' |
sed "s|'|\\\'|g" |
sed 's|"|\\\"|g')"
elif echo "${arg}" | grep -q "'"; then
command="${command} \"${arg}\""
else
command="${command} '${arg}'"
fi
done
eval ${command}
else
/bin/wireshark "$@"
fi