Files
SDG-OS/sdgos/tuis/documentation.sh

13 lines
240 B
Bash
Executable File

#!/bin/bash
CONFIG=/home/$(whoami)/.config/sdgos/tuis/documentation.list
SELECTED=$(cat $CONFIG | cut -d '|' -f 1 | fzf --layout=reverse)
URL=$(cat $CONFIG | grep -e "$SELECTED" | cut -d '|' -f 2)
echo "the command is $URL"
eval $URL