Created
November 2, 2022 21:45
-
-
Save why-not/4e9f8baae51b17031ffdba4d69d347af to your computer and use it in GitHub Desktop.
useful bash functions backup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addpythonpath { | |
PYTHONPATH=$PYTHONPATH:`pwd` | |
sed -i '' '/^PYTHONPATH/d' ~/.bashrc | |
sleep .5 | |
echo PYTHONPATH=$PYTHONPATH >> ~/.bashrc | |
} | |
# install yt-dlp first for this to work. | |
# streams youtube videos via VLC. | |
function ytvlc { | |
yt-dlp --get-url --format best $1 | "/Applications/VLC.app/Contents/MacOS/VLC" --meta-title $1 --no-video-title - | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment