From 7bd08705dd7369a97b320f0d4327ac02ce58030b Mon Sep 17 00:00:00 2001 From: svxf Date: Wed, 20 Mar 2019 01:11:12 +0400 Subject: [PATCH] pycache to gitignore --- .gitignore_global | 3 +++ .zprezto/abra/functions.zsh | 12 +++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore_global b/.gitignore_global index 2b1768a..1f77763 100644 --- a/.gitignore_global +++ b/.gitignore_global @@ -2,3 +2,6 @@ .DS_Store .idea +.ipynb_checkpoints + +__pycache__ \ No newline at end of file diff --git a/.zprezto/abra/functions.zsh b/.zprezto/abra/functions.zsh index 5fbb5c5..d54bd05 100644 --- a/.zprezto/abra/functions.zsh +++ b/.zprezto/abra/functions.zsh @@ -173,12 +173,12 @@ function .dcp { .g push } -function strip-tags { +function strip_tags { FUNCTION_PRELUDE find . -type f -name '*.mp3' \ | tr '\n' '\0' \ - | xargs -0 -n1 mid3v2 --delete-frames=TXXX,USLT,TIPL,UFID,APIC,TBPM,TCMP,TDOR,TDRC,TLAN,TMED,TPOS,TPUB,TRCK,TCON + | xargs -0 -n1 mid3v2 --delete-frames=APIC,TXXX,USLT,TBPM } function levi_beet { @@ -215,7 +215,7 @@ function rsync2 { "${(@)@}" } -function sync-music { +function sync_music { FUNCTION_PRELUDE # if ! is_local; then @@ -328,4 +328,10 @@ function update_.g { function .sh_setup { echo 'wget abra.me/.sh && chmod +x .sh && ./.sh' +} + +function send_new_torrents { + FUNCTION_PRELUDE + + rsync2 --remove-source-files ~/Downloads/*.torrent(mm-10) levi:/projects/torrent_autoadd/ } \ No newline at end of file