From 277fb7b293be0ebf7f1137d10dddf369132d7e4d Mon Sep 17 00:00:00 2001 From: JMARyA Date: Tue, 24 Nov 2020 16:49:53 +0100 Subject: [PATCH] added video presets --- dot_files.zsh | 1 + encode64.plugin.zsh | 1 + exa.zsh | 3 ++- extract.plugin.zsh | 1 + media.zsh | 1 + mkcd.zsh | 1 + rsync.plugin.zsh | 1 + systemd.plugin.zsh | 2 +- update.zsh | 2 +- video_presets.zsh | 7 +++++++ youtube-dl.zsh | 3 --- 11 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 video_presets.zsh diff --git a/dot_files.zsh b/dot_files.zsh index 6921356..f132cd3 100644 --- a/dot_files.zsh +++ b/dot_files.zsh @@ -1,3 +1,4 @@ + function find_dot_files() { find . -name '.DS_Store'; find . -name '._*'; diff --git a/encode64.plugin.zsh b/encode64.plugin.zsh index 93f4551..d50e95e 100644 --- a/encode64.plugin.zsh +++ b/encode64.plugin.zsh @@ -1,3 +1,4 @@ + encode64() { if [[ $# -eq 0 ]]; then cat | base64 diff --git a/exa.zsh b/exa.zsh index 7038d47..5b1c7b0 100644 --- a/exa.zsh +++ b/exa.zsh @@ -1,3 +1,4 @@ + alias ls="exa" alias l="exa -l" -alias la="exa -la" \ No newline at end of file +alias la="exa -la" diff --git a/extract.plugin.zsh b/extract.plugin.zsh index 46e69f0..715bf33 100644 --- a/extract.plugin.zsh +++ b/extract.plugin.zsh @@ -1,3 +1,4 @@ + alias x=extract extract() { diff --git a/media.zsh b/media.zsh index b610c3d..6f9fc2f 100644 --- a/media.zsh +++ b/media.zsh @@ -1,3 +1,4 @@ + function convert() { for i in *.$1; do ffmpeg -i "$i" "${i%.*}.$2"; done } diff --git a/mkcd.zsh b/mkcd.zsh index 57ac072..63bf139 100644 --- a/mkcd.zsh +++ b/mkcd.zsh @@ -1,3 +1,4 @@ + function mkcd() { mkdir $1 && cd $1 } diff --git a/rsync.plugin.zsh b/rsync.plugin.zsh index 1a3bb4c..35187e7 100644 --- a/rsync.plugin.zsh +++ b/rsync.plugin.zsh @@ -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" diff --git a/systemd.plugin.zsh b/systemd.plugin.zsh index c6fd529..ddd3ea9 100644 --- a/systemd.plugin.zsh +++ b/systemd.plugin.zsh @@ -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 } - diff --git a/update.zsh b/update.zsh index 25e0c96..d018be3 100644 --- a/update.zsh +++ b/update.zsh @@ -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 } - diff --git a/video_presets.zsh b/video_presets.zsh new file mode 100644 index 0000000..054edcf --- /dev/null +++ b/video_presets.zsh @@ -0,0 +1,7 @@ + +function mkVideoProj() { + mkdir $1 && cd $1; + mkdir -p Media; + mkdir -p Renders; + mkdir -p Thumbnails; +} diff --git a/youtube-dl.zsh b/youtube-dl.zsh index 0636ea4..9816d9e 100644 --- a/youtube-dl.zsh +++ b/youtube-dl.zsh @@ -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"