summaryrefslogtreecommitdiff
path: root/.config/shell/aliasrc
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2025-06-20 19:28:33 +0200
committerMike Vink <ivi@vinkies.net>2025-06-20 19:29:09 +0200
commit07afa0633223edcbbd0689a2f375fbce3c1af1fb (patch)
tree6ba8a31482b379c61e61aea70fcd910f2aac37ef /.config/shell/aliasrc
parent9c95c55d9a0d4d6bd264c66462444a6ce6cb4411 (diff)
update
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r--.config/shell/aliasrc56
1 files changed, 48 insertions, 8 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index db026ab..5b53059 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -1,10 +1,50 @@
+#!/bin/sh
+
+# sudo not required for some system commands
+for command in mount umount sv xbps-remove xbps-install updatedb su shutdown poweroff reboot ; do
+ alias $command="sudo $command"
+done; unset command
+
+# 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" \
+ rsync="rsync -vrPlu" \
+ mkd="mkdir -pv" \
+ yt="yt-dlp --embed-metadata -i" \
+ yta="yt -x -f bestaudio/best" \
+ ytt="yt --skip-download --write-thumbnail" \
+ ffmpeg="ffmpeg -hide_banner"
+
+# Colorize commands when possible.
+alias \
+ ls="ls -hN --color=auto --group-directories-first" \
+ ll="ls -hNl --color=auto --group-directories-first" \
+ grep="grep --color=auto" \
+ diff="diff --color=auto" \
+ ccat="highlight --out-format=ansi" \
+ ip="ip -color=auto"
+
+# These common commands are just too long! Abbreviate them.
+alias \
+ ka="killall" \
+ g="git" \
+ s="{ git status --short ; git log --oneline @{push}.. ; }" \
+ ga="git add " \
+ gc="git commit " \
+ d="docker" \
+ trem="transmission-remote" \
+ YT="youtube-viewer" \
+ sdn="shutdown -h now" \
+ e='$EDITOR' \
+ v='$EDITOR' \
+ p="pacman" \
+ xi="xbps-install" \
+ xr="xbps-remove -R" \
+ xq="xbps-query" \
+ z="zathura"
+
alias \
ref="shortcuts >/dev/null; . ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; . ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc"
-alias g="git "
-alias s="{ git status --short ; git log --oneline @{push}.. ; }"
-alias ga="git add "
-alias gc="git commit "
-alias d="docker "
-alias d=' echo cd $PWD | kak -p s; eval "[ -n \"$(jobs)\" ] && fg" '
-alias b=' eval "$(cd-kak-buf)"'
-alias z='zathura '