blob: 98cc029b561932b7a885160d007046ea8016260d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#!/usr/bin/env bash
alias ls='ls --color=auto'
alias ll='ls --color=auto -lh'
alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias emacs='emacs -nw'
alias magit='et -e "(magit-status \"$(pwd)\")"'
alias agenda='et -e "(org-agenda nil \" \")"'
alias vimg='vim +Git +only'
# Don't save command history
command -v todo.sh > /dev/null && alias t=' todo.sh'
command -v jrnl > /dev/null && alias jrnl=' jrnl'
alias gmf='git diff --merge-base'
alias gmfn='git diff --merge-base --name-only'
if [ -f /usr/bin/pacman ]; then
alias S='sudo pacman -S'
alias Si='pacman -Si'
alias Ss='pacman -Ss'
alias Syu='sudo pacman -Syu'
alias Rs='sudo pacman -Rs'
alias Rns='sudo pacman -Rns'
alias Q='pacman -Q'
alias Qi='pacman -Qi'
alias Qm='pacman -Qm'
alias Qs='pacman -Qs'
alias Qu='pacman -Qu'
fi
if [ -f /usr/bin/paru ]; then
alias Sa='paru -Sa'
alias Sia='paru -Sia'
alias Ssa='paru -Ssa'
alias Syua='paru -Syua'
alias Rsa='paru -Rsa'
alias Rnsa='paru -Rnsa'
alias Qa='paru -Qa'
alias Qia='paru -Qia'
alias Qma='paru -Qma'
alias Qsa='paru -Qsa'
alias Qua='paru -Qua'
fi
if command -v tig &> /dev/null; then
alias tigs='tig status'
fi
# git alias
alias g='git'
|