diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2023-02-17 10:18:01 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2023-02-17 10:18:01 -0500 |
| commit | a2e767e4f4224cb74b2159833bec598e2e9b72e2 (patch) | |
| tree | 56dc0a5dabaf1ff6d43d407a0c82ef8f244bc647 | |
| parent | 185ac25e52069cab8144d0aea820c056544dfec2 (diff) | |
| download | eibhear-a2e767e4f4224cb74b2159833bec598e2e9b72e2.tar.gz eibhear-a2e767e4f4224cb74b2159833bec598e2e9b72e2.tar.zst eibhear-a2e767e4f4224cb74b2159833bec598e2e9b72e2.zip | |
other aliases
| -rw-r--r-- | .config/shell/aliasrc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 0541d0f..09f9a32 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -6,12 +6,17 @@ # Use $XINITRC variable if file exists. [ -f "$XINITRC" ] && alias startx="startx $XINITRC" +[ -f "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC" + # sudo not required for some system commands for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do alias $command="sudo $command" done; unset command -se() { cd ~/.local/bin; $EDITOR $(fzf) ;} +se() { + choice="$(find ~/.local/bin -mindepth 1 -printf '%P\n' | fzf)" + [ -f "$HOME/.local/bin/$choice" ] && $EDITOR "$HOME/.local/bin/$choice" + ;} # Verbosity and settings that you pretty much just always are going to want. alias \ @@ -19,9 +24,11 @@ alias \ 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. |
