summaryrefslogtreecommitdiffstats
path: root/.config/shell/aliasrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r--.config/shell/aliasrc16
1 files changed, 9 insertions, 7 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 1f048ed..27d4527 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -7,9 +7,9 @@
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
# sudo not required for some system commands
-for x in mount umount sv pacman updatedb su ; do
- alias $x="sudo $x"
-done
+for command in mount umount sv pacman 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 \
@@ -18,7 +18,7 @@ alias \
rm="rm -vI" \
bc="bc -ql" \
mkd="mkdir -pv" \
- yt="youtube-dl --add-metadata -i" \
+ yt="yt-dlp --embed-metadata -i" \
yta="yt -x -f bestaudio/best" \
ffmpeg="ffmpeg -hide_banner"
@@ -27,7 +27,8 @@ alias \
ls="ls -hN --color=auto --group-directories-first" \
grep="grep --color=auto" \
diff="diff --color=auto" \
- ccat="highlight --out-format=ansi"
+ ccat="highlight --out-format=ansi" \
+ ip="ip -color=auto"
# These common commands are just too long! Abbreviate them.
alias \
@@ -35,16 +36,17 @@ alias \
g="git" \
trem="transmission-remote" \
YT="youtube-viewer" \
- sdn="sudo shutdown -h now" \
+ sdn="shutdown -h now" \
e="$EDITOR" \
v="$EDITOR" \
- p="sudo pacman" \
+ p="pacman" \
xi="sudo xbps-install" \
xr="sudo xbps-remove -R" \
xq="xbps-query" \
z="zathura"
alias \
+ lf="lfub" \
magit="nvim -c MagitOnly" \
ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" \
weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \