update
This commit is contained in:
parent
3ee2f4c885
commit
9765a9e04a
11 changed files with 15 additions and 54 deletions
3
zsh/exa.zsh
Normal file
3
zsh/exa.zsh
Normal file
|
@ -0,0 +1,3 @@
|
|||
alias ls="exa"
|
||||
alias l="exa -l"
|
||||
alias la="exa -la"
|
9
zsh/mac_files.zsh
Normal file
9
zsh/mac_files.zsh
Normal file
|
@ -0,0 +1,9 @@
|
|||
function find_mac_files() {
|
||||
find . -name '.DS_Store';
|
||||
find . -name '._*';
|
||||
}
|
||||
|
||||
function clean_mac_files() {
|
||||
find . -name '.DS_Store' -type f -delete;
|
||||
find . -name '._*' -type f -delete
|
||||
}
|
7
zsh/media.zsh
Normal file
7
zsh/media.zsh
Normal file
|
@ -0,0 +1,7 @@
|
|||
function convert() {
|
||||
for i in *.$1; do ffmpeg -i "$i" "${i%.*}.$2"; done
|
||||
}
|
||||
|
||||
function mkvToMp4() {
|
||||
for i in *.mkv; do ffmpeg -i "$i" -map 0 -c copy "${i%.*}.mp4"; done
|
||||
}
|
3
zsh/mkcd.zsh
Normal file
3
zsh/mkcd.zsh
Normal file
|
@ -0,0 +1,3 @@
|
|||
function mkcd() {
|
||||
mkdir $1 && cd $1
|
||||
}
|
2
zsh/vars.zsh
Normal file
2
zsh/vars.zsh
Normal file
|
@ -0,0 +1,2 @@
|
|||
export EDITOR="micro"
|
||||
export PATH=~/bin:$PATH
|
6
zsh/video_presets.zsh
Normal file
6
zsh/video_presets.zsh
Normal file
|
@ -0,0 +1,6 @@
|
|||
function mkVideoProj() {
|
||||
mkdir $1 && cd $1;
|
||||
mkdir -p Media;
|
||||
mkdir -p Renders;
|
||||
mkdir -p Thumbnails;
|
||||
}
|
10
zsh/youtube-dl.zsh
Normal file
10
zsh/youtube-dl.zsh
Normal file
|
@ -0,0 +1,10 @@
|
|||
alias downloadVid="yt-dlp --downloader aria2c -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=1080]+bestaudio\" --write-thumbnail"
|
||||
alias downloadVid1440="yt-dlp --downloader aria2c -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=1440]+bestaudio\" --write-thumbnail"
|
||||
alias downloadVid4K="yt-dlp --downloader aria2c -o \"%(title)s.%(ext)s\" -f \"bestvideo[height<=2160]+bestaudio\" --write-thumbnail"
|
||||
alias downloadAudio="yt-dlp --downloader aria2c -o \"%(playlist_index)s %(title)s.%(ext)s\" -x"
|
||||
alias downloadMusic="yt-dlp --downloader aria2c -x --add-metadata -o \"%(playlist_title)s/%(playlist_index)s %(title)s.%(ext)s\""
|
||||
alias dlBeat="yt-dlp --downloader aria2c --no-playlist --audio-format m4a -x"
|
||||
alias downloadYT="yt-dlp --downloader aria2c --write-thumbnail -o \"%(title)s.%(ext)s\" --embed-thumbnail --embed-chapters --embed-info-json --convert-thumbnails jpg"
|
||||
function downloadList() {
|
||||
cat $1 |xargs -I _ yt-dlp --downloader aria2c _
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue