summaryrefslogtreecommitdiff
path: root/.config/shell/aliasrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r--.config/shell/aliasrc39
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
4alias \
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
14alias \
15 g='git' \
16 gd='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
17
18# Shorten other commands
19alias \
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
32alias \
33 calcurse="calcurse -D ~/.config/calcurse" \
34 cp="cp -iv" \
35 ffmpeg="ffmpeg -hide_banner" \
36 mv="mv -iv" \
37 rm="rm -Iv"
38
39source $XDG_CONFIG_HOME/shell/private-aliasrc