summaryrefslogtreecommitdiff
path: root/zsh/zscripts/aliasrc.zsh
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2024-10-17 22:46:39 -0500
committerTim Keller <tjk@tjkeller.xyz>2024-10-17 22:46:39 -0500
commit78d5e2082554d370f43216406f84872eaa2a4e5b (patch)
treefc354e842111062c057484cbb319e02037404975 /zsh/zscripts/aliasrc.zsh
parent75793a911de3648963385c70237fc737f1967e9d (diff)
downloaddotconfig-78d5e2082554d370f43216406f84872eaa2a4e5b.tar.xz
dotconfig-78d5e2082554d370f43216406f84872eaa2a4e5b.zip
remove zsh and nvim configs from this repo and move to another
Diffstat (limited to 'zsh/zscripts/aliasrc.zsh')
-rwxr-xr-xzsh/zscripts/aliasrc.zsh64
1 files changed, 0 insertions, 64 deletions
diff --git a/zsh/zscripts/aliasrc.zsh b/zsh/zscripts/aliasrc.zsh
deleted file mode 100755
index f4e5035..0000000
--- a/zsh/zscripts/aliasrc.zsh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/usr/bin/env zsh
-
-# Replacement programs
-typeset -A repaliases=(
- #alias replacement
- htop htim
- mutt neomutt
- vim nvim
- sudo "${SUDO:- }"
- neofetch fastfetch
-)
-for alias rep in ${(kv)repaliases}; do
- command -v $rep >/dev/null && alias $alias=$rep
-done # Tests if replacement exists before creating alias
-
-
-# Shorten program names
-alias \
- open="xdg-open" \
- smci="sudo make clean install" \
- smi="sudo make install" \
- su="sudo su -l" \
-
-# Power scripts
-alias \
- halt="launch shutdown" \
- off="launch shutdown" \
- reboot="launch reboot" \
- zzz="launch suspend" \
-
-# Colorize command output
-alias \
- bat="bat --theme='Monokai Extended'" \
- diff="diff --color=auto" \
- exa="exa --icons -a --group-directories-first" \
- grep="grep --color=auto -I --ignore-case --line-number" \
- ip="ip --color=auto" \
- ls="ls -vAhN --color=auto --group-directories-first" \
-
-# (Non)-Verbosity
-alias \
- cp="cp -iv" \
- dd="sudo dd status=progress bs=4M"
- ffmpeg="ffmpeg -hide_banner" \
- ffprobe="ffprobe -hide_banner" \
- mkd="mkdir -p" \
- mv="mv -iv" \
- rm="rm -v" \
-
-# Miscellaneous
-alias \
- yt-dlp-album="yt-dlp -x -o '%(uploader)s (%(upload_date>%Y)s) - %(playlist_title)s%%%(playlist_index)s - %(title)s.%(ext)s'" \
- yt-dlp="yt-dlp -o '%(uploader)s - %(title)s.%(ext)s'" \
-
-# Clean home directory
-alias \
- mbsync="mbsync --config $MBSYNCRC" \
- startx="startx $X11CONFIG/xinitrc" \
-
-# Copy-pasting from internet
-alias \
- \$="" \
- \#="${SUDO-sudo}" \
-