Update 2022-12-06 08:01 OpenBSD/amd64

This commit is contained in:
c0dev0id
2022-12-06 08:01:44 +01:00
parent fb05d04fee
commit df81168e5e
28 changed files with 701 additions and 4 deletions

13
.bin/dexec_ssh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
. $HOME/.bin/_config
CONF=$(cat $HOME/.ssh/config| grep -Ei "^host" | grep -v '*' | cut -d" " -f2)
HOSTS=$(cat $HOME/.ssh/known_hosts | cut -d" " -f1 | tr ',' '\n')
HOST=$(printf '%s\n%s' "$CONF" "$HOSTS" | grep -v '=' | sort -ru | $DMENU_CMD -p SSH)
if [ ! -z "$HOST" ]; then
case "$HOST" in
*-sftp) texec "sftp $HOST"; ;;
*) texec "ssh $HOST"; ;;
esac
fi