aboutsummaryrefslogtreecommitdiff
path: root/.config/zsh/zsh-aliases
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh/zsh-aliases')
-rw-r--r--.config/zsh/zsh-aliases24
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/zsh/zsh-aliases b/.config/zsh/zsh-aliases
new file mode 100644
index 0000000..5015453
--- /dev/null
+++ b/.config/zsh/zsh-aliases
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+alias ls='ls --color=auto'
+alias ll='ls --color=auto -lAh'
+#alias l='ls -CF'
+
+alias dir='dir --color=auto'
+alias vdir='vdir --color=auto'
+
+# Colorize grep output (good for log files)
+alias grep='grep --color=auto'
+alias fgrep='fgrep --color=auto'
+alias egrep='egrep --color=auto'
+
+
+alias yts="mpv --ytdl-format='bestvideo[height<=360]+bestaudio'"
+alias ytd='youtube-dl -o "%(playlist_index)d-%(title)s.%(ext)s"'
+alias ytv3="youtube-dl --write-auto-sub -f 'bestvideo[height<=360]+bestaudio/best[height<=360]' -o '%(playlist_index)d-%(title)s.%(ext)s'"
+alias ytv4="youtube-dl --write-auto-sub -f 'bestvideo[height<=480]+bestaudio/best[height<=480]' -o '%(playlist_index)d-%(title)s.%(ext)s'"
+alias ytv7="youtube-dl --write-auto-sub -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' -o '%(playlist_index)d-%(title)s.%(ext)s'"
+alias ytv10="youtube-dl --write-auto-sub -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]' -o '%(playlist_index)d-%(title)s.%(ext)s'"
+alias yta='youtube-dl --extract-audio -o "%(playlist_index)d-%(title)s.%(ext)s"'
+
+alias zsh-update-plugins="find "$ZDOTDIR/plugins" -type d -exec test -e '{}/.git' ';' -print0 | xargs -I {} -0 git -C {} pull -q"