added video presets

This commit is contained in:
JMARyA 2020-11-24 16:49:53 +01:00
parent 074b56ba30
commit 277fb7b293
No known key found for this signature in database
GPG key ID: 19BD48AEE60FA00B
11 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,4 @@
function find_dot_files() {
find . -name '.DS_Store';
find . -name '._*';

View file

@ -1,3 +1,4 @@
encode64() {
if [[ $# -eq 0 ]]; then
cat | base64

View file

@ -1,3 +1,4 @@
alias ls="exa"
alias l="exa -l"
alias la="exa -la"
alias la="exa -la"

View file

@ -1,3 +1,4 @@
alias x=extract
extract() {

View file

@ -1,3 +1,4 @@
function convert() {
for i in *.$1; do ffmpeg -i "$i" "${i%.*}.$2"; done
}

View file

@ -1,3 +1,4 @@
function mkcd() {
mkdir $1 && cd $1
}

View file

@ -1,3 +1,4 @@
alias rsync-copy="rsync -avz --progress -h"
alias rsync-move="rsync -avz --progress -h --remove-source-files"
alias rsync-update="rsync -avzu --progress -h"

View file

@ -1,3 +1,4 @@
user_commands=(
cat
get-default
@ -87,4 +88,3 @@ function systemd_prompt_info {
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_SUFFIX"
done
}

View file

@ -1,3 +1,4 @@
function update() {
if type "apt-get" &> /dev/null; then
sudo apt-get update;
@ -26,4 +27,3 @@ function update() {
brew cask upgrade;
fi
}

7
video_presets.zsh Normal file
View file

@ -0,0 +1,7 @@
function mkVideoProj() {
mkdir $1 && cd $1;
mkdir -p Media;
mkdir -p Renders;
mkdir -p Thumbnails;
}

View file

@ -1,8 +1,5 @@
alias downloadVid="youtube-dl -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=1080][ext=webm]+bestaudio\" --write-thumbnail"
alias downloadVid1440="youtube-dl -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=1440][ext=webm]+bestaudio\" --write-thumbnail"
alias downloadVid4K="youtube-dl -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=2160][ext=webm]+bestaudio\" --write-thumbnail"
alias downloadAudio="youtube-dl -o \"%(playlist_index)s %(title)s.%(ext)s\" -x"