aboutsummaryrefslogtreecommitdiff
path: root/.config/zsh/zsh-aliases
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-06-20 22:01:05 +0200
committerMateja <mail@matejamaric.com>2021-06-20 22:01:05 +0200
commit5c68b137a6b1ecf59e4c89ac5ca9352c0ef3e849 (patch)
treec4b91179b698d74b2f8b0c7ea92266678e556f65 /.config/zsh/zsh-aliases
parent740c3cc87b71c9f7a68f83f5c6a1434600f04220 (diff)
downloaddotfiles-5c68b137a6b1ecf59e4c89ac5ca9352c0ef3e849.tar.gz
dotfiles-5c68b137a6b1ecf59e4c89ac5ca9352c0ef3e849.zip
Added zsh configuration files.
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"