diff options
| author | Sam Chudnick <sam@chudnick.com> | 2021-11-06 20:25:45 -0400 |
|---|---|---|
| committer | Sam Chudnick <sam@chudnick.com> | 2021-11-06 20:25:45 -0400 |
| commit | 82df70eff06e7b44ee84283070d7f801f7fc1d92 (patch) | |
| tree | d17ea9cc6e012b16ff0cdeffcf4a97b5e5cd2d11 /.config/shell/aliasrc | |
initial commit
Diffstat (limited to '.config/shell/aliasrc')
| -rw-r--r-- | .config/shell/aliasrc | 39 |
1 files changed, 39 insertions, 0 deletions
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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Add color to commands | ||
| 4 | alias \ | ||
| 5 | diff="diff --color=auto" \ | ||
| 6 | dir="dir --color=auto" \ | ||
| 7 | vdir="vdir --color=auto" \ | ||
| 8 | egrep="egrep --color=auto" \ | ||
| 9 | fgrep="fgrep --color=auto" \ | ||
| 10 | grep="grep --color=auto" \ | ||
| 11 | ls="ls --group-directories-first --color=auto" | ||
| 12 | |||
| 13 | # Git | ||
| 14 | alias \ | ||
| 15 | g='git' \ | ||
| 16 | gd='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME' | ||
| 17 | |||
| 18 | # Shorten other commands | ||
| 19 | alias \ | ||
| 20 | ports="ss -tuanp" \ | ||
| 21 | py="python3" \ | ||
| 22 | rb="/usr/sbin/reboot" \ | ||
| 23 | sd="/usr/sbin/shutdown now" \ | ||
| 24 | sx="startx" \ | ||
| 25 | svm="sudo systemctl start libvirtd" \ | ||
| 26 | v="vim" \ | ||
| 27 | yta="youtube-dl -f bestaudio --download-archive ~/media/youtube/archive" \ | ||
| 28 | ytv="youtube-dl -f bestvideo[height\<=1080]+bestaudio/best[height\<=1080] --download-archive ~/media/youtube/archive" \ | ||
| 29 | z="zathura" | ||
| 30 | |||
| 31 | # Start commands with specific options always | ||
| 32 | alias \ | ||
| 33 | calcurse="calcurse -D ~/.config/calcurse" \ | ||
| 34 | cp="cp -iv" \ | ||
| 35 | ffmpeg="ffmpeg -hide_banner" \ | ||
| 36 | mv="mv -iv" \ | ||
| 37 | rm="rm -Iv" | ||
| 38 | |||
| 39 | source $XDG_CONFIG_HOME/shell/private-aliasrc | ||
