summaryrefslogtreecommitdiff
path: root/.config/shell/aliasrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r--.config/shell/aliasrc31
1 files changed, 31 insertions, 0 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
new file mode 100644
index 0000000..17334cc
--- /dev/null
+++ b/.config/shell/aliasrc
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+#Use yt-dlp for youtube-dl if present
+[ -x "$(command -v yt-dlp)" ] && alias youtube-dl="yt-dlp" # ln -s yt-dlp youtube-dl
+
+# Use neovim for vim if present
+[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
+
+
+alias g="/usr/bin/git --git-dir=$HOME/.g --work-tree=$HOME"
+# Verbosity and settings that you pretty much just always are going to want.
+alias \
+cp="cp -iv" \
+mv="mv -iv" \
+rm="rm -vI" \
+bc="bc -ql" \
+mkd="mkdir -pv" \
+ffmpeg="ffmpeg -hide_banner" \
+diff="diff --color" \
+ls="ls --color"
+
+#youtube-dl shortcuts # or more simple ?? yt -x -f
+alias yt='yt-dlp -f "bv*[ext=mkv]+ba[ext=m4a]/b[ext=mkv] / bv*+ba/b" -o "%(title)s.%(ext)s" '
+alias yta='yt-dlp -f "ba" -x -o "%(title)s.%(ext)s" -P "~/Music" '
+
+
+
+alias lf="lfub"
+# Portage admin aliases
+alias emerge="doas emerge"
+alias eix-sync="doas eix-sync"