| Install with Pen | |
|---|---|
| Pen.el on GitHub | https://github.com/semiosis/pen.el/ |
| Tutorial | https://mullikine.github.io/posts/pen-el-tutorial/ |
To use it, simply run nlsh with the operating system.
# Example 1
nlsh Alpine Linux
# Example 2
nlsh Ubuntu
# Example 3 -- with syntax highlighting
nlsh -nv UbuntuEnter 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'"
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"
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
