Install with Pen
Pen.el on GitHub https://github.com/semiosis/pen.el/
Tutorial https://mullikine.github.io/posts/pen-el-tutorial/

Introducing NL·SH!

To use it, simply run nlsh with the operating system.

1
2
3
4
5
6
7
8
# Example 1
nlsh Alpine Linux

# Example 2
nlsh Ubuntu

# Example 3 -- with syntax highlighting
nlsh -nv Ubuntu
1
2
3
4
5
6
7
8
Enter your commands in natural language.

ubuntu: set reminder to take beer out of fridge in 30 mins

at now + 30 minutes <<< 'echo "take beer out of fridge" > $HOME/beerreminder.txt'
at now + 30 min <<< "echo 'Take beer out of fridge'"
echo "take beer out of fridge in 30 mins" | at now + 30 minutes
at now + 30 min <<< "echo 'take beer out of fridge'"

Demo

1
2
3
4
5
6
7
ubuntu: search for jazz music with youtube-dl

youtube-dl -i -c -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 --add-metadata https://www.youtube.com/results?search_query=jazz
youtube-dl -x --audio-format mp3 <url>
youtube-dl -x --audio-format mp3 https://www.youtube.com/results?search_query=jazz
youtube-dl -i -f mp4 https://www.youtube.com/results?search_query=jazz+music
youtube-dl -x --audio-format mp3 -i "ytsearch1:jazz music"
1
2
3
4
5
6
7
ubuntu: search for jazz with ytsearch1 and youtube-dl and play it using mplayer

youtube-dl -x --audio-format mp3 --audio-quality 0 --output "jazz.%(ext)s" https://www.youtube.com/watch?v=0-XRtW1jzKk && mplayer jazz.mp3
ytsearch1 "jazz" | xargs youtube-dl -o - | mplayer -
youtube-dl -o '%(title)s.%(ext)s' -f bestaudio --exec 'mplayer {}' https://www.youtube.com/results?search_query=jazz
youtube-dl -x --audio-format mp3 <url> | mplayer -
youtube-dl -x --audio-format mp3 --audio-quality 0 --no-part -o '%(title)s.%(ext)s' 'ytsearch1:jazz' && mplayer *.mp3

Older demo