From 82df70eff06e7b44ee84283070d7f801f7fc1d92 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sat, 6 Nov 2021 20:25:45 -0400 Subject: initial commit --- .config/shell/aliasrc | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .config/shell/aliasrc (limited to '.config/shell/aliasrc') diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc new file mode 100644 index 0000000..c1a2de9 --- /dev/null +++ b/.config/shell/aliasrc @@ -0,0 +1,39 @@ +#!/bin/sh + +# Add color to commands +alias \ + diff="diff --color=auto" \ + dir="dir --color=auto" \ + vdir="vdir --color=auto" \ + egrep="egrep --color=auto" \ + fgrep="fgrep --color=auto" \ + grep="grep --color=auto" \ + ls="ls --group-directories-first --color=auto" + +# Git +alias \ + g='git' \ + gd='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME' + +# Shorten other commands +alias \ + ports="ss -tuanp" \ + py="python3" \ + rb="/usr/sbin/reboot" \ + sd="/usr/sbin/shutdown now" \ + sx="startx" \ + svm="sudo systemctl start libvirtd" \ + v="vim" \ + yta="youtube-dl -f bestaudio --download-archive ~/media/youtube/archive" \ + ytv="youtube-dl -f bestvideo[height\<=1080]+bestaudio/best[height\<=1080] --download-archive ~/media/youtube/archive" \ + z="zathura" + +# Start commands with specific options always +alias \ + calcurse="calcurse -D ~/.config/calcurse" \ + cp="cp -iv" \ + ffmpeg="ffmpeg -hide_banner" \ + mv="mv -iv" \ + rm="rm -Iv" + +source $XDG_CONFIG_HOME/shell/private-aliasrc -- cgit v1.2.3